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 

war

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
<repository>  
    <id>central-repos</id>  
    <name>Central Repository</name>  
    <url>https://repo.maven.apache.org/maven2/</url>  
</repository>
  • Maven
<repository>  
    <id>central-repos1</id>  
    <name>Central Repository 2</name>  
    <url>https://repo1.maven.org/maven2/</url>  
</repository>
  • Ali cloud
<repository>  
    <id>alimaven</id>
    <name>aliyun maven</name>
    <url>https://maven.aliyun.com/repository/public</url>
</repository> 

This article from the
qbit snap