Skip the test

  • Skip test code runs, do not skip test code compilations
mvn package -DskipTests
  • Skip test code compilation and running
mvn package -Dmaven.test.skip=true 


Web Archive file

  • Java Maven packages local JAR into WAR

Export the pom.xml dependency

mvn dependency:copy-dependencies -DoutputDirectory=lib

The central warehouse

  • Apache
    <name>Central Repository</name>  
  • Maven
    <name>Central Repository 2</name>  
  • Ali cloud
    <name>aliyun maven</name>

This article from the
qbit snap