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的主要内容,如果未能解决你的问题,请参考以下文章

idea maven打包 install 报错The packaging for this project did not assign a file to the build artifact(示例

maven 执行mvn install 命令报错

idea maven install 卡住,无报错排查。

MAVEN打包的`parent.relativePath points at wrong local POM`问题

SpringBoot项目pom.xml导入Oracle的jar包报错,maven解决方案.

maven deploy和install的区别