title: How to resolve a Maven "The packaging for this project did not assign a file to the build artifact" error?
body: <p>I’m using Maven 3.2.3.  I used to be able to run “mvn clean install” on my WAR project and the WAR would get installed to my local repository.  However, I recently added a configuration so that my WAR would be constructed in place (config is below).  Now, when I run</p>
  
  <pre><code>mvn clean install
  </code></pre>
  
  <p>I get the error</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.5.2:install (install) on project myproject: The packaging for this project did not assign a file to the build artifact -&gt; [Help 1]
  </code></pre>
  
  <p>How do I fix this?  I tried making the “install” goal of the maven-install-plugin the default, but that didn’t help.  Below is my Maven configuration …</p>
  
  <pre><code>                &lt;plugin&gt;
                      &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.4.1&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;filesets&gt;
                              &lt;fileset&gt;
                                  &lt;directory&gt;${project.basedir}/src/main/webapp/WEB-INF/classes&lt;/directory&gt;
                              &lt;/fileset&gt;
                              &lt;fileset&gt;
                                  &lt;directory&gt;${project.basedir}/src/main/webapp/WEB-INF/lib&lt;/directory&gt;
                              &lt;/fileset&gt;
                          &lt;/filesets&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.6&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;useCache&gt;true&lt;/useCache&gt;
                          &lt;workDirectory&gt;/tmp/${project.artifactId}/war/work&lt;/workDirectory&gt;
                      &lt;/configuration&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;default-war&lt;/id&gt;
                              &lt;phase&gt;none&lt;/phase&gt;
                          &lt;/execution&gt;
                          &lt;execution&gt;
                              &lt;id&gt;war-inplace&lt;/id&gt;
                              &lt;phase&gt;package&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;inplace&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&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.2&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;default-install&lt;/id&gt;
                              &lt;phase&gt;none&lt;/phase&gt;
                          &lt;/execution&gt;
                          &lt;execution&gt;
                              &lt;id&gt;install&lt;/id&gt;
                              &lt;phase&gt;install&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;install&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
  </code></pre>