title: Install Maven jar with pom into local repository
body: <p>I have an old jar (<code>jsf-api-2.0.2.jar</code>). In this jar there is a <code>/META-INF/maven</code>-Folder.</p>
  
  <p>How do I install the jar into my local repository? </p>
  
  <p><code>install:install-file</code> says I need to specify the artifactId myself. How do I force it to use the information in <code>jsf-api-2.0.2.jar!\META-INF\maven\com.sun.faces\jsf-api\pom.xml</code>?</p>
  
  <p>Output:</p>
  
  <pre><code>mvn install:install-file -Dfile=jsf-api-2.0.2.jar
  [INFO] Scanning for projects...
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] Building Maven Stub Project (No POM) 1
  [INFO] ------------------------------------------------------------------------
  [INFO]
  [INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.410s
  [INFO] Finished at: Sat Feb 01 12:52:34 CET 2014
  [INFO] Final Memory: 13M/368M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default cli) on project standalone-pom: The artifact information is incomplete or not valid:
  [ERROR] [0]  'groupId' is missing.
  [ERROR] [1]  'artifactId' is missing.
  [ERROR] [2]  'packaging' is missing.
  [ERROR] [3]  'version' is missing.
  [ERROR] -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>