PizzaStack.github.io

Maven

Build automation and dependency management tool. Once installed, use with the mvn command. Allows for a project to be IDE agnostic. See the official Maven project for documentation: http://maven.apache.org/index.html as well as the mvn repository to find available libraries: https://mvnrepository.com/

Example commands

Create a new Maven project with the quickstart archetype. Change groupId and artifactId arguments as needed:

mvn archetype:generate -DgroupId=com.revature -DartifactId=my-first-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

Package project into a jar

mvn package

Remove target folder and compiled build

mvn clean

Run JUnit tests

mvn test