In the latest version of the build plugin (2.2-beta-2), you can use [general descriptor] [1]. Define a descriptor in the src / main / resources / assemblies folder of an individual project and install or expand it.
For projects that want to use a descriptor, determine the dependency on the descriptor project in the assembly plugin configuration, then refer to the assembly.
: , . , /assemblies/myassembly.xml, /myassembly.xml , magic assemblysies. .
, src/main resources, .. assemblysies/myassembly.xml not. XML.
:
<build>
...
<plugins>
...
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-2</version>
<dependencies>
<dependency>
<groupId>your.group.id</groupId>
<artifactId>my-assembly-descriptor</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assemblies/myassembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>