1. 解决Out of Memory,设置环境变量
set MAVEN_OPTS=-Xms256m -Xmx256m
2. Maven编译时跳过测试
- mvn clean install -DskipTests (只跳test阶段,还要做test-compile)
- mvn clean install -Dmaven.test.skip= true (跳过test-compile和test两个阶段)
注:elcipse maven插件中Run as选择的skipTests复选框,实际上是-Dmaven.test.skip=true
3. 下载源码包
mvn dependency:sources
4. 检查pom是否有效
mvn help:effective-pom
5. 检查默认激活的profile
mvn help:active-profiles
还可以查看在指定profile或变量的情况下,会激活的profile,如:mvn help:active-profiles -Pdevci -Dproduct=true
2122

被折叠的 条评论
为什么被折叠?



