[英]How to stop the maven-release-plugin from using an old version of the maven-gpg-plugin
How can I configure the maven-release-plugin to use version 1.6 of the maven-gpg-plugin in my pom.xml
? 如何配置maven-release-plugin以在我的
pom.xml
使用maven-gpg-plugin的1.6版本?
When I run mvn release:prepare
, the maven-release-plugin (version 2.5.3) is executing a sub-process that uses a very old version of the maven-gpg-plugin (1.1): 当我运行
mvn release:prepare
,maven-release-plugin(版本2.5.3)正在执行一个使用非常旧版本的maven-gpg-plugin(1.1)的子进程:
$ mvn release:prepare
...
[INFO] --- maven-release-plugin:2.5.3:prepare (default-cli) @ heroku-sdk-parent ---
...
[INFO] Executing goals 'clean verify'...
...
[INFO] --- maven-gpg-plugin:1.1:sign (sign-artifacts) @ heroku-sdk-parent ---
Eventually this gives me an error because the maven-gpg-plugin:1.1 doesn't work with the gpg 2.2.4 on my machine. 最终这给了我一个错误,因为maven-gpg-plugin:1.1不能在我的机器上使用gpg 2.2.4。 Nothing I've tried has worked.
我尝试过的任何东西都没有效果。
You can find the actual project I'm working with here: 你可以在这里找到我正在使用的实际项目:
https://github.com/heroku/heroku-maven-plugin https://github.com/heroku/heroku-maven-plugin
You can reproduce with: 你可以复制:
$ git clone https://github.com/heroku/heroku-maven-plugin
$ cd heroku-maven-plugin
$ ./mvnw release:prepare -DdryRun
The problem was my use of a deprecated oss-parent pom from Sonatype . 问题是我使用Sonatype的一个弃用的oss-parent pom 。
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>9</version>
</parent>
I removed this, and my build started working. 我删除了这个,我的构建开始工作了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.