http://maven.apache.org/plugins/
[b]输出依赖树[/b]
下载源代码jar
下载javadoc包
跳过findbugs
[b]单元测试[/b]
跳过单元测试
跑单个单元测试(可加通配符)[url=http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html]详见[/url]
或细到方法单元测试
-----------------------------------------
同时也release到antx
指定配置文件
或
跳过检查intl-base
内存溢出
[b]输出依赖树[/b]
mvn dependency:tree > dep.txt下载源代码jar
-DdownloadSources=true下载javadoc包
-DdownloadJavadocs=true跳过findbugs
-Dfindbugs.skip=true[b]单元测试[/b]
跳过单元测试
-Dmaven.test.skip=true跑单个单元测试(可加通配符)[url=http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html]详见[/url]
mvn -Dtest=TestSquare,TestCi*le test或细到方法单元测试
mvn -Dtest=TestCircle#*test* test-----------------------------------------
同时也release到antx
a2m:install-antx-module-intl指定配置文件
-Dantx.properties.path=/path/your.properties或
-DuserProp=/path/your.properties跳过检查intl-base
-Dcheck.parent.skip内存溢出
export MAVEN_OPTS="$MAVEN_OPTS -Xms256m -Xmx1024m"
本文介绍了Maven中常用的命令,如输出依赖树、下载源代码和Javadoc包等,并提供了跳过单元测试、指定配置文件及调整内存分配的方法。
1474

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



