Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I solved similar isue with exec-maven-plugin with two executions, one is zip the directorys and the other deploy with a bin classifier to the repository in my case to the third-party. So I saved all unix permissions in the zip file.</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt; &lt;version&gt;1.2.1&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;1&lt;/id&gt; &lt;phase&gt;package&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;exec&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;executable&gt;zip&lt;/executable&gt; &lt;workingDirectory&gt;${basedir}&lt;/workingDirectory&gt; &lt;arguments&gt; &lt;argument&gt;-r&lt;/argument&gt; &lt;argument&gt;target/com.example.test.ext.zip&lt;/argument&gt; &lt;argument&gt;Out&lt;/argument&gt; &lt;argument&gt;-x&lt;/argument&gt; &lt;argument&gt;*.svn*&lt;/argument&gt; &lt;/arguments&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;2&lt;/id&gt; &lt;phase&gt;package&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;exec&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;executable&gt;mvn&lt;/executable&gt; &lt;workingDirectory&gt;${basedir}/target&lt;/workingDirectory&gt; &lt;arguments&gt; &lt;argument&gt;deploy:deploy-file&lt;/argument&gt; &lt;argument&gt;-Dfile=com.example.test.ext.zip&lt;/argument&gt; &lt;argument&gt;-Dclassifier=bin&lt;/argument&gt; &lt;argument&gt;-DgroupId=com.example&lt;/argument&gt; &lt;argument&gt;-DartifactId=test&lt;/argument&gt; &lt;argument&gt;-Dversion=1.0&lt;/argument&gt; &lt;argument&gt;-Dpackaging=zip&lt;/argument&gt; &lt;argument&gt;-DrepositoryId=releases&lt;/argument&gt; &lt;argument&gt;-Durl=http://nexus..../nexus/content/repositories/thirdparty &lt;/argument&gt; &lt;/arguments&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>If you use the result as a depenency dont forget the "bin" classifier:</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;version&gt;2.8&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;unpack1&lt;/id&gt; &lt;phase&gt;generate-resources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;unpack&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;artifactItems&gt; &lt;artifactItem&gt; &lt;groupId&gt;com.example&lt;/groupId&gt; &lt;artifactId&gt;test&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;classifier&gt;bin&lt;/classifier&gt; &lt;type&gt;zip&lt;/type&gt; &lt;overWrite&gt;true&lt;/overWrite&gt; &lt;outputDirectory&gt;output&lt;/outputDirectory&gt; &lt;/artifactItem&gt; &lt;/artifactItems&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload