打包報錯,
mvn install后加上參數-Dgpg.skip,例如:mvn install -Dgpg.skip
即可解決。
我們也可以去掉 這個 插件
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
或者打包的時候 不用 install 命令,
用 package 這個打包命令 mvn clean package 也是可以的