跳过测试

  • 跳过测试代码运行,不跳过测试代码编译
mvn package -DskipTests
  • 跳过测试代码编译和运行
mvn package -Dmaven.test.skip=true 

war

Web Archive file

导出 pom.xml 依赖

mvn dependency:copy-dependencies -DoutputDirectory=lib

中央仓库

<repository>  
    <id>central-repos</id>  
    <name>Central Repository</name>  
    <url>https://repo.maven.apache.org/maven2/</url>  
</repository>
<repository>  
    <id>central-repos1</id>  
    <name>Central Repository 2</name>  
    <url>https://repo1.maven.org/maven2/</url>  
</repository>
<repository>  
    <id>alimaven</id>
    <name>aliyun maven</name>
    <url>https://maven.aliyun.com/repository/public</url>
</repository> 
本文出自 qbit snap

qbit
268 声望279 粉丝