maven 多模块自动更新子模块的api版本号
1: parent mvn -N versions:update-child-modules mvn deploy -N 2: service deploy 3: 子模块api
在parent的pom.xml目录执行: mvn -N versions:update-child-modules
代码语言:javascript复制[INFO] Scanning for projects...
[INFO] Downloading:
.......
[INFO] Module: byron4j-agent
[INFO] parent was com.byron4j:byron4j-parent:1.2.2-SNAPSHOT
[INFO] updated to com.byron4j:byron4j-parent:1.2.2-RELEASE
[INFO] Module: byron4j-agent-api
[INFO] parent was com.byron4j:byron4j-parent:1.2.2-SNAPSHOT
[INFO] updated to com.byron4j:byron4j-parent:1.2.2-RELEASE
[INFO] Module: byron4j-common
[INFO] parent was com.byron4j:byron4j-parent:1.2.2-SNAPSHOT
[INFO] updated to com.byron4j:byron4j-parent:1.2.2-RELEASE
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.166 s
[INFO] Finished at: 2017-06-08T18:51:58 08:00
[INFO] Final Memory: 16M/173M
[INFO] ------------------------------------------------------------------------
执行完毕后,看到所有子模块均更新了相应的api版本。