我在linux中使用maven-gpg-plugin是可以的,我可以安装gpg2作为标志,但是在windows中,部署存在问题。
有log 'gpg2' is not recognized as an internal or external command, operable program or batch file. (与gpg2 --version相同)
和
Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.5:sign (sign-artifacts) on project。
如何为windows安装gpg2?
发布于 2019-11-22 01:01:18
在您的settings.xml文件中,更改gpg.executable属性。举例说明。
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.passphrase>PASSPHRASE</gpg.passphrase>
</properties>
</profile>
</profiles>https://stackoverflow.com/questions/53117382
复制相似问题