title: How to reach pom.properties
body: <p>I am trying to get application's version and name/artifact-id from server at runtime for the plugin I am developing.<br>
  I know I can get the details from pom.properties that is generated on the server, using below code   </p>
  
  <pre><code>java.io.InputStream inputStream = getServletContext().getResourceAsStream("/META-INF/maven/&lt;application-directory-structure&gt;/pom.properties");
  Properties mavenProperties= new Properties();
  mavenProperties.load(inputStream );
  String version = (String) mavenProperties.get("version");
  String name = (String) mavenProperties.get("artifactId");
  </code></pre>
  
  <p>But I am not able to reach to the pom.properties.<br>
  I tried using <code>JarFile.getEntries()</code>but as I am not able to get the name of the war at runtime, its not working.<br>
  Any suggestions how I can get the details I am looking for?<br>
  I can't modify the maven plugin to get the artifact details. I am making a plugin myself and can't force all the apps for that.</p>