【问题标题】:How to activate release profile with maven-release-plugin 3.0.0-M1?如何使用 maven-release-plugin 3.0.0-M1 激活发布配置文件?
【发布时间】:2020-07-04 13:13:41
【问题描述】:

maven 发布插件的 3.0.0-M1 版本似乎没有像以前那样为 perform 目标激活配置文件。我用“release”配置了参数“releaseProfiles”,但它试图激活配置文件“pom.xml”。遵循调试日志中的一些行:

mvn release:perform -X
[INFO] --- maven-release-plugin:3.0.0-M1:perform (default-cli) @ release-example ---
[INFO] [perform] 3/3 run-perform-goals
[DEBUG] Executing: /bin/sh -c cd /data/src/gv2011/release-example/target/checkout && /programs/apache-maven-3.6.3/bin/mvn -X -D maven.repo.local=/home/u01/.m2/repository -s /tmp/release-settings8879316982474805713.xml -P pom.xml install
[INFO] [WARNING] The requested profile "pom.xml" could not be activated because it does not exist.

我在https://github.com/gv2011/release-example放了一个示例项目。

对之前的版本 2.5.3 执行相同操作可以按预期工作。对应的日志行是:

[DEBUG] Executing: /bin/sh -c cd /data/src/gv2011/release-example/target/checkout && /programs/apache-maven-3.6.3/bin/mvn -X -D maven.repo.local=/home/u01/.m2/repository -s /tmp/release-settings14990918664891992430.xml -P release install

这是一个错误吗?有解决办法吗?

【问题讨论】:

    标签: maven-release-plugin


    【解决方案1】:

    发布插件3.0.0-M1版本中为known bug

    虽然该问题已在 3.0.0-M2 中关闭,但由于另一个严重错误,M2 版本未发布。现在,我们将不得不等待 3.0.0-M3 或最终的 3.0.0 版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-07-03
      • 2016-10-23
      • 1970-01-01
      • 2011-11-12
      • 2014-10-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多