title: Download war file from nexus with maven
body: <p>If I have the artifactId, the groupId and the version how I can configure the pom.xml so maven will download test.war file from the nexus repository.
  I assume that this should happened in the </p>
  
  <pre><code>            &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
              .....
              &lt;/plugin&gt;
  </code></pre>
  
  <p>In the execution block.
  I already tried this but no luck:</p>
  
  <pre><code>    &lt;execution&gt;
      &lt;phase&gt;package&lt;/phase&gt;
      &lt;goals&gt;
          &lt;goal&gt;copy&lt;/goal&gt;
      &lt;/goals&gt;
      &lt;configuration&gt;
          &lt;artifactItems&gt;
              &lt;artifactItem&gt;
                  &lt;artifactId&gt;mytest&lt;/artifactId&gt;
                  &lt;groupId&gt;com.mytest&lt;/groupId&gt;
                  &lt;version&gt;${version}&lt;/version&gt;
                  &lt;type&gt;war&lt;/type&gt;
                  &lt;destFileName&gt;mytest-${version}.war&lt;/destFileName&gt;
              &lt;/artifactItem&gt;
          &lt;/artifactItems&gt;
          &lt;outputDirectory&gt;${project.build.directory}&lt;/outputDirectory&gt;
      &lt;/configuration&gt;
  &lt;/execution&gt;
  </code></pre>