mvn build project

Shell
# one of the following
# compiles java classes
mvn compile  
# creates a jar in target folder
mavn package
# creates a jar in target folder and adds to your local .m2 repository
mvn install
Source

Also in Shell: