无法构建使用Spring-boot开发的应用程序的标记版本:

时间:2019-02-19 08:29:26

标签: maven spring-boot jenkins

在剪切标签后尝试构建应用程序的版本时,出现错误提示

[ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven- 
plugin:2.0.1:rpm (default) on project quicklinks-service: RPM build 
execution returned: '1' executing '/bin/sh -c cd 
/app/jenkins_slave/workspace/SCM-quicklinks-main- 
release/service/target/rpm/quicklinks-service/SPECS && rpmbuild -bb -- 
buildroot /app/jenkins_slave/workspace/SCM-quicklinks-main- 
release/service/target/rpm/quicklinks-service/buildroot --define 
'_topdir /app/jenkins_slave/workspace/SCM-quicklinks-main- 
release/service/target/rpm/quicklinks-service' --target noarch-redhat- 
linux quicklinks-service.spec' -> [Help 1]

有人遇到这个问题吗?我尝试更改maven-release-plugin和rpm-maven-plugin都没有运气。

Below are the environment/application details.
Java: 1.8
Maven: 3.3.9
rpm-maven-plugin: 2.0.1
maven-release-plugin: 2.5.2
maven-compiler-plugin: 3.1
Spring-boot: 2.0.4.RELEASE
Repository: Perforce

1 个答案:

答案 0 :(得分:0)

在rpm-maven-plugin配置下添加版权信息解决了该问题。

<copyright>${rpm.copyright}</copyright>