Java Maven 打包相关(qbit)

跳过测试

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

war

Web Archive file

导出 pom.xml 依赖

mvn dependency:copy-dependencies -DoutputDirectory=lib

中央仓库

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

你可能感兴趣的:(java,maven,jar,test)