So in order for you to customize the way the Assembly Plugin creates your assemblies, you need to know how to use the Assembly Descriptor. from flexible assembly descriptors. The Assembly Plugin for Maven is primarily intended to allow users to aggregate the project output along with its dependencies, modules, site documentation, and other files into a single distributable archive.
The Assembly Plugin for Maven enables developers to combine project output into a single distributable archive that also contains dependencies, modules, site documentation, and other files.
Maven Assembly Plugin relies on the provided assembly descriptors to dictate its execution. Introduction. This … NOTE: If the dependencySet specifies unpack == true, outputFileNameMapping WILL NOT BE USED; in these cases, use outputDirectory. Use bin as the descriptorRef of your assembly-plugin configuration in order to create a binary distribution archive of your project.
Apache Maven Assembly Plugin. Including and Excluding Artifacts.
Their descriptorIds are: bin; jar-with-dependencies; src; project; bin. Pre-defined Descriptor Files. Although there are already prefabricated descriptors available for use, they can only suffice some of the common assembly requirements.
See the plugin FAQ for more details about entries usable in the outputFileNameMapping parameter. Your project can easily build distribution "assemblies" using one of the prefabricated assembly descriptors.
Home » org.apache.maven.plugins » maven-assembly-plugin Apache Maven Assembly Plugin A Maven plugin to create archives of your project's sources, classes, dependencies etc. There are four predefined descriptor formats available for reuse, packaged within the Assembly Plugin.
Example Create a simple project. Currently the include/exclude format is based upon the dependency conflict id which has a form of: groupId:artifactId:type:classifier.A shortened form of the dependency conflict id may also be used groupId:artifactId..
Copyright 2020 maven assembly plugin dependencyset