Building the Project
Maven offers commands for most use cases. These work by giving a set of goals, marking how far into its lifecycle it will go:
Several goals can be combined. It is recommended using the 'clean' goal when generating artifacts:
This will delete all the generated content before starting.
To find more about these goals check the Maven lifecycle.
Setting up the Environment
If the POM is set up correctly all the dependencies and plugins will be handled automatically by Maven.
Build
To generate the project artifacts (JAR/WAR):
Changing the Artifact Name
By default the generated artifact will include the version number, looking something like:
This can be changed by setting the final name build property:
Install
To install in the local repository:
Last updated