rpm-maven-plugin icon indicating copy to clipboard operation
rpm-maven-plugin copied to clipboard

Jenkins can't execute RPM goals

Open adammuller opened this issue 8 years ago • 4 comments

Hello,

I am trying to execute your plugin in my Jenkins server. There is a option where I can set goals up and I have written the next command line in my Jenkins configuration [Build -> Goals and options]:

rpm:rpm -group "Development/Tools" -name "example" -projversion "1" -releaseProperty "1" -versionProperty "1"

The error I am getting back is:

Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.4:rpm (default-cli) on project myProject: The parameters 'group' for goal org.codehaus.mojo:rpm-maven-plugin:2.1.4:rpm are missing or invalid ->

image

Could You help me? I am not sure if those parameters (group, name, projversion...) should be written in that textbox or in my pom.xml.

Thank you

adammuller avatar Dec 11 '15 10:12 adammuller

@adammuller I would not build rpm this way, try to configure the pom to do it for you. There are plenty of example for src/IT. You may as well post this question to maven user group where you will get more help

dantran avatar Dec 11 '15 10:12 dantran

Hello @dantran thanks for your answer. I have this POM.xml

image

Is this goal good enough to create the RPM? Where should I write the parameters? Could You provide me a link where I can find an example?

Thank you, Adam.

adammuller avatar Dec 11 '15 12:12 adammuller

@adammuller did you ever get your project to build the rpm? or did you find an example?

ZahediAquino avatar Nov 28 '16 22:11 ZahediAquino

@dantran I think this issue should be closed as "not a defect". Clearily the orignal problem is caused by passing -group instead of -Dgroup etc.

jakub-bochenski avatar Oct 03 '17 14:10 jakub-bochenski