Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Guide to creating assemblies

How to use assembly plugin - good

Predefined Descriptors - very useful

Descriptor format - most descriptors have no description


  • assembly:assembly (default goal) Creates a distribution artifact
  • assembly:directory copies files into a directory structure without packing those file
  • assembly:unpack unpacks packed files


An assembly file consists of three sections

General assembly properties


the id.


list of package formats that should be generated, each in <format> descriptor


jar, tar.gz, tar.bz2, zip if you know of others, please add them here


defaults to false. Determines if the base directory should be included in the package.



Directory in the target tree where the files should be copied to.


copies the contents of this directory to the specified target directory. Copies files by name, does not copy path. if anyone could clarify what other types of patterns can be specified that would be great!


copies the specified files that match the pattern (e.g. *.txt) to the target directory. Includes the directory path when copying.


Excludes the specified files that match the pattern (e.g. *.txt) from being copied to the target directory.









Directory in the target tree where the dependencies should be copied to.


Includes the specified dependency


Excludes the specified dependency


Unpacks the contents of the dependencies









How To

  • How to copy files into some target directory structure without packaging.

This can be accomplished with the assembly:directory goal. There is only a small downside: The directory
goal always creates a folder below the target directory that is version-specific. This version-specific directory
is even created when <includeBaseDirectory> is set to false (that may be a bug).

  • No labels