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

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, 没有那个文件或目录

 

你可能感兴趣的:(Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.1:rpm (default) on project **)