O'Reilly logo

Maven Essentials by Prabath Siriwardena

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The assembly descriptor

The assembly descriptor is an XML-based configuration, which defines how to build an assembly and how its content should be structured.

If we go back to our previous example, the attached goal of the assembly plugin creates a binary distribution according to the assembly descriptor, both in the test and the package phases of the default Maven lifecycle. The assembly descriptors for each phase can be specified under the descriptors element. As in the case of this particular example, there are multiple descriptor elements defined under the descriptors parent element. For the package phase, it has three assembly descriptors, as shown in the following configuration:

<descriptors> <descriptor>src/assembly/bin.xml</descriptor> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required