title: Maven install external jar through pom not working
body: <p>I want to add a an external jar to my project. I want to add it inside the pom instead of installing it via the maven command.</p>
  
  <p>This is what I have configured inside my pom:</p>
  
  <pre><code>    &lt;plugins&gt;
        &lt;plugin&gt;
            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-install-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.5&lt;/version&gt;
            &lt;executions&gt;
                &lt;execution&gt;
                    &lt;phase&gt;install&lt;/phase&gt;
                    &lt;goals&gt;
                        &lt;goal&gt;install-file&lt;/goal&gt;
                    &lt;/goals&gt;
                    &lt;configuration&gt;
                        &lt;repositoryLayout&gt;default&lt;/repositoryLayout&gt;
                        &lt;groupId&gt;org.opencv&lt;/groupId&gt;
                        &lt;artifactId&gt;opencv&lt;/artifactId&gt;
                        &lt;version&gt;3.2.0&lt;/version&gt;
                        &lt;packaging&gt;jar&lt;/packaging&gt;
                        &lt;file&gt;${project.basedir}/../runtime-resources/opencv-dep/opencv-320.jar&lt;/file&gt;
                        &lt;generatePom&gt;true&lt;/generatePom&gt;
                    &lt;/configuration&gt;
                &lt;/execution&gt;
            &lt;/executions&gt;
        &lt;/plugin&gt;
    &lt;/plugins&gt;
  </code></pre>
  
  <p>I'm getting this error:
  <code>The POM for org.opencv:opencv:jar:3.2.0 is missing, no dependency information available.</code></p>
  
  <p>But when running the command, everything is oke:
  <code>mvn install:install-file -Dfile={absolute-path-to-jar}/opencv-320.jar -DgroupId=org.opencv
  -DartifactId=opencv -Dversion=3.2.0 -Dpackaging=jar</code></p>
  
  <p>NOTE: This is only the case on <strong>Netbeans</strong> and not on <strong>InteliJ</strong>. Netbeans apparently skips the install command and just searches for the dependency online, and ofcourse can't find it. I ran <code>mvn install</code> <code>mvn install:install</code> <code>mvn install:install-file</code></p>