Maven - Package


Packaging in Maven.

Package is a phase that bundle the code in a way suitable to be distributed.

By default, this phase will take the compiled code and make an archive of it as define in the packaging element of the pom.xml. The specific goals executed per phase is dependent upon the packaging type of the project.

By default:

Additional plugin can create:

  • an exe file
  • or an assembly (zip file with dependency, bin, …)


The name of the produced package will follow the artifact naming convention.


Packaging Element

Packaging Element of the pom.xml

<project xmlns=""

but can be also:

Powered by ComboStrap