It's all about the answers!

Ask a question

How to generate post-build tasks for a Maven build


Jerry Feldman (12710) | asked May 07 '14, 1:30 p.m.
We need to perform 4 tasks after a successful JBE maven build:
copy 2 targets to s specified directory
perform a maven dependency resolve list and a dependency tree.

It would be very useful to do this as part of the Maven definition rather than set up a command line definition.

One answer



permanent link
Jeff Care (1.0k3733) | answered May 07 '14, 1:33 p.m.
My product was in a similar situation.

I wish I could tell you otherwise, but honestly your best bet is probably to switch to a command line definition & call Maven from a shell script. You just have so much more flexibility that way.

Comments
Jerry Feldman commented May 07 '14, 1:38 p.m.

That was my initial approach, but with a command-line do you get the build results back to RTC


Jeff Care commented May 07 '14, 1:54 p.m.

I wrote a wrapper around the Ant tasks. I also asked the RTC team to add command line equivalents; can't remember the work item for that though.

Your answer


Register or to post your answer.