How to make two goals bind to one phrase be executed in order?

17 views
Skip to first unread message

stanle...@servicemax.com

unread,
Jan 3, 2017, 4:18:17 AM1/3/17
to JaCoCo and EclEmma Users
Hello, all

I am having two maven plugin binding to same maven post-integration-test phrase.

1. maven-antrun-plugin
2. maven-dependency-plugin

In my case 2nd must be run before 1st because of dependencies.
I tried to put 2nd at pre-integration-test phrase, but it will cause some tricky problem in the integration testing.

In my case, I always see 1st is executed before 2nd, how can I configure plugin to make sure 2nd is executed before 1st?

Or is there any alternative?


Thanks in advance.

Evgeny Mandrikov

unread,
Jan 3, 2017, 1:43:07 PM1/3/17
to JaCoCo and EclEmma Users
This seems to be a more question about how Maven works than about JaCoCo, hence might be valuable to ask in Maven user groups.
However I believe that order of execution of goals in the same phase is dictated by an order of declarations in POM. Unfortunately I don't have any reference in hands right now as proof.

HTH,
Evgeny
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages