标签:help execution rem repo find snap source cut bug
1. mvn clean package -U
主版本号.次版本号.增量版本号.-<里程碑版本>
1.0.0-RELAESE
2.常用命令
a) compile
b) clean (删除target)
c) test test case
d) package 打包
e) install 把项目install 到local repo
f) deploy 把本地jar发布到remote
mvn clean install
mvn clean package
3.插件
常用插件
http://www.mojohaus.org/plugins.html
1) findbugs
2) versons
mvn versions:help
mvn versions:set -DnewVersion=1.1
3) source 打包源代码
4) assembly 打包zip、war
Profile
a) 使用场景 dev/test/pro
10. 仓库
nexus 创建私服
mvn clean install
1.
<build>
<plugins>
<plugin>
<groupId>com.chint</groupId>
<artifactId>chint-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>pluginlearn</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
2. 插件传参数
mvn install -Dargs=123
标签:help execution rem repo find snap source cut bug
原文地址:https://www.cnblogs.com/newlangwen/p/10350239.html