Some commonly used maven commands

windows cmd command line:

  • mvn archetype:create: create a Maven project

  • mvn compile: compile source code

  • mvn test-compile: compile test code

  • mvn test: Run unit tests in the application

  • mvn site: The website that generates project-related information

  • mvn clean: clear the generated results in the target directory

  • mvn package: generate jar files based on the project

  • mvn install: install jar in the local Repository

  • mvn eclipse:eclipse: Generate Eclipse project files

  • mvn -Dmaven.test.skip=true: Ignore test document compilation

Guess you like

Origin blog.csdn.net/u010857795/article/details/50738426