Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.

Goals

GoalDescription
jar:jarLaunch jar:jar goal.
jar:jar Creates a jar file in the Maven build directory with the form ${project.id}-${project.currentVersion}.jar where the id and currentVersion are taken from the project.xml of the project being built.
jar:snapshot Creates a jar file in the Maven build directory with the form ${project.id}-YYYYMMDD.hhmmss.jar where
  • id - taken from the project.xml of the project being built
  • YYYYMMDD - The current year in 8 digit format
  • hhmmss - the current time in 6 digit format
jar:deploy-snapshot Deploy a snapshot jar to the remote repository
jar:deploy Deploy a jar to the remote repository. The jar is built using the java:jar goal
jar:install Install a jar into the local repository. The jar is built using the java:jar goal
jar:install-snapshot Install a jar into the local repository. The jar is built using the jar:snapshot goal and copied into the local repository as the -SNAPSHOT version.
clean This goal is a shortcut to the clean:clean goal
clean:clean Removes the maven.build.dir and maven.test.reportsDirectory directories