Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

maven build skipping goal?

I have two Maven projects under the same component in RTC, one web project and one applet project (I'll call them "web" and "applet").

so, in the root folder of my SRC component, I have a folder "/web", a folder "/applet" and a pom.xml file that build both projects together. each project also has its own pom.xml inside its folder, and the root pom.xml is a "packaging" pom that coordinate them both.

my "applet" project is just a simple maven project. nothing customized.

in my "web" project, I added a few plugins to make the magic happen. I added a "maven-dependency-plugin" in the "prepare-package" step, to copy the "applet" jar into the "web" files, so it is packaged together. this step is working fine.

in the same "prepare-package" goal, I also added a "maven-antrun-plugin" that signs my applet jar, before it is packaged. this step is also working fine and smooth when I run Maven from command-line.

but when I run Maven with RTC, usign a build definition and a build engine I set up, the signing step is just skipped! itdoes not appear in the execution log. no error is thrown, no log is generated, nothing. and then my applet is simply packaged without signing (and so, of course, it fails to run later).

I'm using the same Maven (3.0.4), on the same machine, and calling Maven the same way ("mvn clean install" on command-line, and "clean install" goals on RTC build definition), over the same pom.xml (the root one). I use "root" on command-line to call Maven, and I start the jbe build engine as root too, so I believe both cases run with the same user too. I'm using RTC 3.0.1.3 in a Red Hat system.

and ideia, experience, on why the second prepare-package plugins is being skipped under RTC?

thanks in advance

0 votes



One answer

Permanent link

fixed.

it was an error in the pom.xm file: I should have used two <execution> tags in the antrun-plugin, and not declared the plugin twice in the pom.xml file.

regards.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 45

Question asked: Aug 21 '12, 9:05 a.m.

Question was seen: 10,074 times

Last updated: Aug 23 '12, 9:31 a.m.

Confirmation Cancel Confirm