title: Maven Install plugin: parameter file is missing or invalid
body: <p>I have a local jar and I want to use it in my project. There are plenty ways to do it: just install manually into local repo, do it with script in parent pom, use system scope, use local repo declaration.</p>
  
  <p>I decided to use Maven Install plugin to install jar into the repo. Here is a configuration:</p>
  
  <pre><code>    &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.3.1&lt;/version&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;phase&gt;initialize&lt;/phase&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;install-file&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                      &lt;groupId&gt;jacob&lt;/groupId&gt;
                      &lt;artifactId&gt;jacob&lt;/artifactId&gt;
                      &lt;version&gt;1.0&lt;/version&gt;
                      &lt;packaging&gt;jar&lt;/packaging&gt;
                      &lt;file&gt;${basedir}\lib\jacob.jar&lt;/file&gt;
                  &lt;/configuration&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>I tried to run it in many ways:
  <em>mvn initialize install:install-file
  mvn initialize
  mvn install:install-file</em></p>
  
  <p>But all the time I have an exception:</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal
    org.apache.maven.plugins:maven-install-plugin:2.3.1:install-file
    (default-cli) on project MYPROJECTNAME: The parameters 'file' for goal
    org.apache.maven.plugins:maven-install-plugin:2.3.1:install-file are
    missing or invalid -></p>
  </blockquote>
  
  <p>I just want to find out why it doesn't work? Looks like I am messed with phases and goals..</p>
  
  <p>Finally I went another way: I placed it into my parent POM, but why it works with parent and doesn't work with child?</p>