Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.0.2
-
Fix Version/s: 2.0.9, 3.0-alpha-1
-
Component/s: Dependencies
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
I want to run two ant task, one on the phase 'generate-sources' which contains a dependency and another on the phase 'package'.
When I want to compile with the project like that, maven don't check the dependency.
But when I comment the plugin on the phase 'package', maven check it.
PS: In the pom.xml in attachement, maven must check the library junit:junit:jar:30.80.10 (which don't exsist)
Attachments
Issue Links
| This issue relates to: | ||||
| MNG-3719 | [regression] plugin execution ordering no longer POM ordered in 2.0.9 |
|
|
|
Things get indeed weird if you use several <plugin>s with the same <artifactId> : attached pom-echo.xml echoes 2 times "Hello world, I'm in generate-resources"
A better way to achieve your goal is to merge these 2 <execution>s as in attached pom-merge.xml (you must use <id>s to avoid duplicate "default" id)