Maven - lookup dependencies at runtime
问题 I would like to be able to determine what versions I am running of a dependency at runtime as well as the version of the web application itself. Each web application I deploy is packaged with a pom.xml which I can read from, that part is trivial. The next part is parsing the pom without much effort. As the web application is running, I want to be able to understand what version I am, and what versions my dependencies are. Ideally, I would like to do something like: MavenPom pom = new MavenPom