Reputation: 771
I have developed the pom.xml to first combine all the js files in the project and then compress the JS file. These 2 steps are two plugin and are in compile phase.
But some how few times puglin execution order is reversed and build fails. In case some one has seen this issue please redirect me to solution.
Secondly, I don't to include the JS in .war which are combined and compressed.
Upvotes: 0
Views: 1895
Reputation: 570385
To strictly answer the first part of the question, plugins bound to the same phase are supposed to be executed in the same order as they are listed in the POM and any other behavior should be considered as a but (see MNG-2258). But I personally get the expected behavior with Maven 2.2.1.
Answering the second part of the question will be harder without more details:
aggregations
(and thus remove the need for two executions)In other words, give more info please.
Upvotes: 2