title: How to deploy only zip artifacts in maven
body: <p>I have done some zip packaging in maven using the below descriptor and pom file. But in maven by default it created both jar and zip in target folder. Now i want to deploy only zip contents where i am using deploy:deploy-file plugin. but it is not deploying instead it is showing error. Not sure what is wrong with tag and how it should be resolved.</p>
  
  <p>Pom file:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;groupId&gt;com.wyndhamvo.prototype.dbscripts&lt;/groupId&gt;
    &lt;artifactId&gt;DB_SCRIPTS&lt;/artifactId&gt;
    &lt;version&gt;2.0.0.1&lt;/version&gt;
  
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;descriptor&gt;src/assembly/descriptor.xml&lt;/descriptor&gt;
              &lt;/configuration&gt;
              &lt;executions&gt; 
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;single&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  
  
    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;/properties&gt;
  
    &lt;distributionManagement&gt;
      &lt;snapshotRepository&gt;
          &lt;id&gt;wvoNexus&lt;/id&gt;
          &lt;file&gt;${project.artifactId}-${project.version}.zip&lt;/file&gt;
          &lt;url&gt;http://nexus.corproot.com/nexus/content/repositories/snapshots/&lt;/url&gt;
      &lt;/snapshotRepository&gt;
  
      &lt;repository&gt;
          &lt;id&gt;wvoNexus&lt;/id&gt;
          &lt;file&gt;${project.artifactId}-${project.version}.zip&lt;/file&gt;
          &lt;url&gt;http://nexus.corproot.com/nexus/content/repositories/releases/&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/distributionManagement&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>assembly plugin descriptor file:</p>
  
  <pre><code>&lt;assembly&gt;
  &lt;formats&gt;
      &lt;format&gt;zip&lt;/format&gt;
  &lt;/formats&gt;
  
  &lt;fileSets&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;src/main/resources&lt;/directory&gt;
          &lt;includes&gt;
              &lt;include&gt;**/*&lt;/include&gt;
          &lt;/includes&gt;
          &lt;outputDirectory&gt;DB_Files&lt;/outputDirectory&gt;
      &lt;/fileSet&gt;
  &lt;/fileSets&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>Command Executed:</p>
  
  <pre><code>mvn -X clean package deploy:deploy-file
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>[ERROR] Malformed POM C:\Divakar\MavenPrototype\DB_Maven_Test\dev\pom.xml: Unrecognised tag: 'file' (position: START_TAG seen ...&lt;id&gt;wvoNexus&lt;/id&gt;\r\n\t\t\t&lt;file&gt;... @37:10)  @ C:\Divakar\MavenPrototype\DB_Maven_Test\dev\pom.xml, line 37, column 10
  </code></pre>