

It also specifies what files are downloaded from Maven repositories and where they should go. "distribution.xml" specifies what files are copied from the distribution-files directory, and where they should go in your final project. Holds detailed instructions on how to put your project together. This is the file which is used by the "mvn" command. Holds the Maven instructions for building the project. Otherwise, your changes will be overwritten when you next build your project.

Note well: If you need to change your distribution, you must change the files in the distribution-files directory. This directory contains all of the files which make up your distribution, except those which are stored in the Maven repository (those are downloaded as needed when the project is built). Holds a "project template" which is used to build your distribution. This is the directory created by the Maven distribution archetype. It can be used to create a single type of distribution, and then modified with Maven profiles to create distributions for all systems in your customer's development, test, and production environments.ĭistribution projects have the following structure: The Maven project built by the aspire-distribution-archetype is the starter project for this process. Using Maven profiles (see Introduction to Maven Profiles), it is possible to use a single Maven project to build all of these different types of distributions.

Why not just create a distribution? Why create a Maven Project to create distributions? In basic terms, it automatically sets up all directories and project files for your new distribution. It is a special Maven Project that can create new Maven Projects.

The Maven Distribution Archetype is a Maven Archetype that creates a new Maven Project that creates Aspire distributions or AppBundles.
