versions:set -DnewVersion=0.0.1-SNAPSHOT
versions:set -DnewVersion=0.0.1-RELEASE
versions:commit
versions:revert
<profiles> <profile> <id>dev</id> <properties> <profiles.active>dev</profiles.active> <maven.test.skip>true</maven.test.skip> <commonpack.version>0.0.3-SNAPSHOT</commonpack.version> </properties> <activation> <activeByDefault>true</activeByDefault> </activation> </profile> </profiles>
<dependency> <groupId>com.xxx</groupId> <artifactId>cjh-common</artifactId> <version>${commonpack.version}</version> </dependency>
转载请注明博客出处:http://www.cnblogs.com/cjh-notes/
原文:https://www.cnblogs.com/cjh-notes/p/12824588.html