maven install 打包 报错 Cannot run program "gpg.exe": CreateProcess error

Posted 邱明成

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven install 打包 报错 Cannot run program "gpg.exe": CreateProcess error相关的知识,希望对你有一定的参考价值。

打包报错,  

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 也是可以的













以上是关于maven install 打包 报错 Cannot run program "gpg.exe": CreateProcess error的主要内容,如果未能解决你的问题,请参考以下文章