且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法执行目标org.apache.maven.plugins:maven-gpg-plugin

更新时间:2021-10-03 16:58:42

如果不需要对工件进行签名,则可以禁用或跳过在父pom中定义的gpg插件的执行

If you don't need your artifacts to be signed, you may disable or skip the execution of the gpg plugin defined in the parent pom

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>maven-gpg-plugin</artifactId>
    <configuration>
        <skip>true</skip>
    </configuration>
</plugin>

或使用gpg.skip=true运行构建(请参见 Maven GPG插件)

or run the build with gpg.skip=true (see Maven GPG Plugin)

如果需要对工件进行签名,则应该检查父pom中gpg-plugin的配置或覆盖pom中的配置.也许父pom中的某些设置与您的系统环境不匹配,但这很难从错误消息中得知.

If you need your artifacts to be signed, you should either check the configuration of the gpg-plugin in the parent pom or override the configuration in your pom. Maybe some settings in the parent pom do not match your system's environment, but thats difficult to say from the error message.