【发布时间】: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
这是一个错误吗?有解决办法吗?
【问题讨论】: