Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>With the latest version of the assembly plugin (2.2-beta-2), you can use a [shared descriptor][1]. Define the descriptor in the <em>src/main/resources/assemblies</em> folder of a separate project and install or deploy it.</p> <p>In the projects that want to use the descriptor, define a dependency on the descriptor project in the assembly plugin configuration, then reference the assembly.</p> <p>Update: There is a special rule that checks the <em>assemblies</em> directory. So either /assemblies/myassembly.xml or just /myassembly.xml work as long as you're using the magic <em>assemblies</em> directory name. For other directory names the full path relative to the resources directory is needed. </p> <p>I'd wrongly warned that there is an error in the referenced documentation and that the reference path needs to match the relative path below src/main resources, i.e. assemblies/myassembly.xml <strong>not</strong> assembly.xml.</p> <p>The project using the shared descriptor should have this configuration:</p> <pre><code>&lt;build&gt; ... &lt;plugins&gt; ... &lt;plugin&gt; &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt; &lt;version&gt;2.2-beta-2&lt;/version&gt; &lt;!--declare plugin has a dependency on the descriptor project --&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;your.group.id&lt;/groupId&gt; &lt;artifactId&gt;my-assembly-descriptor&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;make-assembly&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;!-- This is where we use our shared assembly descriptor --&gt; &lt;descriptors&gt; &lt;descriptor&gt;assemblies/myassembly.xml&lt;/descriptor&gt; &lt;/descriptors&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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