我试图弄清楚,是否可以在发布结束时部署所有工件。
我运行了以下命令(将 -D 参数传递给 Maven 中的发布插件):
mvn release:prepare
mvn release:perfom -Darguments=-DdeployAtEnd=true
输出包含部署结束的信息,但没有发生:
[INFO] [INFO] --- maven-deploy-plugin:2.8.1:deploy (default-deploy) @ web-app-application ---
[INFO] [INFO] Deploying project:web-app-application:1.0.0-RC6 at end
...
[INFO] [INFO] Finished at: 2015-02-24T12:52:36+01:00
[INFO] [INFO] Final Memory: 65M/339M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Cleaning up after release...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] project ............................................ SUCCESS [ 37.837 s]