Quick Marven Howto
Project setup
Project setup
Create a new project based on Archetype, execute following (example)
mvn archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DgroupId=com.mycompany.app \
-DartifactId=my-app
Common life-cycles
Common life-cycles
Compile - mvn compile
Test - mvn test
Simply compile test - mvn test-compile
Package (make a JAR) - mvn package
Install to local repository (~/.m2/repository by default) - mvn install
Make a project website - mvn site
Clean up - mvn clean
Create IDE descriptor - mvn idea:idea / mvn eclipse:eclipse