当前位置: 首页 > 工具软件 > Mojo-Weixin > 使用案例 >

Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.1:rpm (default) on project **

曹经业
2023-12-01

maven编译项目时报错:Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.1:rpm (default) on project

原因:

没有安装rpm. 安装rpm build工具包:

yum install rpm

 或者

sudo apt-get install rpm

 

具体错误是:

Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.1:rpm (default) on project **: Unable to query for default vendor from RPM: Error while executing process. Cannot run program "rpm": error=2, 没有那个文件或目录

 

 类似资料: