Building the Project
Last updated
Was this helpful?
Last updated
Was this helpful?
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 .
If the POM is set up correctly all the dependencies and plugins will be handled automatically by Maven.
To generate the project artifacts (JAR/WAR):
By default the generated artifact will include the version number, looking something like:
This can be changed by setting the final name build property:
To install in the local repository: