更新时间: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.
Java 11:目标org.apache.maven.plugins:maven-compiler-plugin:3.8.0的执行默认编译:编译失败.:NullPointerException
由于“无法执行目标org.apache.felix:maven-bundle-plugin:2.5.3",Maven构建失败.
无法执行目标org.apache.maven.plugins:项目中的maven-compiler-plugin(default-compile):致命错误编译:未找到tools.jar
目标org.apache.maven.plugins执行attach-javadocs:maven-javadoc-plugin:3.0.0:jar使用Java10失败
Maven无法运行我的项目:无法执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
Maven 错误:无法执行目标 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
无法使用带有错误的MAVEN构建 - 无法执行目标org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
无法在项目上执行目标 org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test).
Maven 不会运行我的项目:无法执行目标 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec