1, or in the Maven project pom.xml Right -> Run As -> "Maven Build ..." or Run Configuration -> "Maven Build"

2, in the input box "Goals": clean install -X

3, use can be selected in the Run As Maven build in

 

 

Several mvn command:

  • mvn -h, when not used, it can help.

  • mvn clean compile, will be compiled into .class .java class file;

  • mvn clean test, unit testing. In essence, or to perform a complete life cycle, clean: clean, resources: resources, compiler: compile, resources: testResources, compiler: testCompile

  • mvn clean package, packaged.

  • mvn clean install –Dmaven.test.skip

  • Clean the install mvn , the package is mounted to a jar maven local repository.

  • mvn archetype: generate, quickly build project skeleton enter some groupId / artifactId / version information, and generates the necessary project dependencies automatically by skeleton mvn plug.