title: Maven Build Error during Build of Multi Module Project
body: <p>I'm working on multi-module Maven project. During compilation My <strong>pom.xml</strong> throws following error:</p>
  
  <pre><code>org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
  org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack (unpack) on project Test2: The parameters 'artifactItems' for goal
  org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack are missing or invalid.
  </code></pre>
  
  <p>How can I get rid of the above error? The <em>pom.xml</em> of <strong>Test2</strong> project is as follows:</p>
  
  
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;parent&gt;
      &lt;artifactId&gt;Test1&lt;/artifactId&gt;
      &lt;groupId&gt;com.photon.phresco&lt;/groupId&gt;
      &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
    &lt;/parent&gt;
  
    &lt;groupId&gt;com.photon.phresco&lt;/groupId&gt;
    &lt;artifactId&gt;Test2&lt;/artifactId&gt;
    &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;Test2&lt;/name&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;net.awired.js&lt;/groupId&gt;
        &lt;artifactId&gt;almond&lt;/artifactId&gt;
        &lt;version&gt;0.1.4&lt;/version&gt;
        &lt;type&gt;war&lt;/type&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;net.awired.js&lt;/groupId&gt;
        &lt;artifactId&gt;jquery&lt;/artifactId&gt;
        &lt;version&gt;1.7.2&lt;/version&gt;
        &lt;type&gt;war&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;jslibraries.files&lt;/groupId&gt;
        &lt;artifactId&gt;jslib_jquery-amd&lt;/artifactId&gt;
        &lt;version&gt;1.7.1-alpha-1&lt;/version&gt;
        &lt;type&gt;js&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;jslibraries.files.history&lt;/groupId&gt;
        &lt;artifactId&gt;jslib_jquery.hashable&lt;/artifactId&gt;
        &lt;version&gt;1.0.0&lt;/version&gt;
        &lt;type&gt;js&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;jslibraries.files&lt;/groupId&gt;
        &lt;artifactId&gt;jslib_xml2json-amd&lt;/artifactId&gt;
        &lt;version&gt;1.1&lt;/version&gt;
        &lt;type&gt;js&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;jslibraries.files&lt;/groupId&gt;
        &lt;artifactId&gt;jslib_jquery-ui-amd&lt;/artifactId&gt;
        &lt;version&gt;1.8.16-alpha-1&lt;/version&gt;
        &lt;type&gt;js&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;jslibraries.files&lt;/groupId&gt;
        &lt;artifactId&gt;jslib_jsonpath-amd&lt;/artifactId&gt;
        &lt;version&gt;0.8.0&lt;/version&gt;
        &lt;type&gt;js&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;4.7&lt;/version&gt;
        &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;net.awired.js&lt;/groupId&gt;
        &lt;artifactId&gt;qunit&lt;/artifactId&gt;
        &lt;version&gt;1.12.0&lt;/version&gt;
        &lt;type&gt;war&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;jslibraries.files&lt;/groupId&gt;
        &lt;artifactId&gt;jslib_yui&lt;/artifactId&gt;
        &lt;version&gt;3.7.2&lt;/version&gt;
        &lt;type&gt;war&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
        &lt;artifactId&gt;gson&lt;/artifactId&gt;
        &lt;version&gt;2.2.2&lt;/version&gt;
        &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
    &lt;distributionManagement&gt;
      &lt;repository&gt;
        &lt;id&gt;TestMultiModule-release&lt;/id&gt;
        &lt;url&gt;http://host:port/repository/content/repositories/dep-3-2/&lt;/url&gt;
      &lt;/repository&gt;
      &lt;snapshotRepository&gt;
        &lt;id&gt;TestMultiModule-snapshot&lt;/id&gt;
        &lt;url&gt;http://host:port/repository/content/repositories/snapshots/&lt;/url&gt;
      &lt;/snapshotRepository&gt;
    &lt;/distributionManagement&gt;
  
    &lt;build&gt;
      &lt;sourceDirectory&gt;/src/main/java&lt;/sourceDirectory&gt;
      &lt;testSourceDirectory&gt;/src/test/java&lt;/testSourceDirectory&gt;
      &lt;directory&gt;do_not_checkin/target&lt;/directory&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;copy-dependencies&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;copy-dependencies&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;excludeScope&gt;provided&lt;/excludeScope&gt;
                &lt;includeTypes&gt;jar&lt;/includeTypes&gt;
                &lt;outputDirectory&gt;do_not_checkin/target/lib&lt;/outputDirectory&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
          &lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;add-source&lt;/id&gt;
              &lt;phase&gt;compile&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;add-source&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;sources&gt;
                  &lt;source&gt;src/main/java&lt;/source&gt;
                &lt;/sources&gt;
              &lt;/configuration&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-assembly-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.2-beta-5&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;create-war&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;single&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;appendAssemblyId&gt;false&lt;/appendAssemblyId&gt;
                &lt;descriptors&gt;
                  &lt;descriptor&gt;conf/war-config.xml&lt;/descriptor&gt;
                  &lt;descriptor&gt;conf/zip-config.xml&lt;/descriptor&gt;
                &lt;/descriptors&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;net.awired.jstest&lt;/groupId&gt;
          &lt;artifactId&gt;jstest-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.3.1.7000&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;goals&gt;
                &lt;goal&gt;test&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;configuration&gt;
            &lt;reportDir&gt;do_not_checkin/jstest/report&lt;/reportDir&gt;
            &lt;runnerType&gt;ALMOND&lt;/runnerType&gt;
            &lt;coverage&gt;true&lt;/coverage&gt;
            &lt;skipTests&gt;${js.skipTest}&lt;/skipTests&gt;
            &lt;sourceExcludes&gt;
              &lt;sourceExclude&gt;eshop/widgets/Init.js&lt;/sourceExclude&gt;
              &lt;sourceExclude&gt;**/**.min.js&lt;/sourceExclude&gt;
              &lt;sourceExclude&gt;**/**-min.js&lt;/sourceExclude&gt;
            &lt;/sourceExcludes&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;net.alchim31.maven&lt;/groupId&gt;
          &lt;artifactId&gt;yuicompressor-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.3.0&lt;/version&gt;
          &lt;configuration&gt;
            &lt;skip&gt;true&lt;/skip&gt;
          &lt;/configuration&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;yuicompressor-default&lt;/id&gt;
              &lt;goals&gt;
                &lt;goal&gt;compress&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>