Failed to execute goalorg.apache.maven.plugins:maven-gpg-plugin:1.4:sign (sign-artifacts)on project openstack-java-sdk: Cannot obtain passphrase in batchmode -> [Help 1]
原因:使用的版本是maven3.X,其执行maven-ant-plugin的行为和maven2.x有一定的不同,需要引入pluginManagement
解决方案:
在pom.xml中修改
<build>
<pluginManagement>
<plugins>
<plugin></plugin>
...
<plugin></plugin>
</plugins>
</pluginManagement>
</build>
参考自:https://blog.csdn.net/weixin_34205826/article/details/86250962