Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 1.1-beta-2
-
Fix Version/s: 1.1-beta-3
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Attached zip contains a minimalist multiproject using commons-attributes that demonstrates the bug.
- head (top level project)
- jar (minimalist jar project) : Sample.java has a "java.util.Date" attribute
- war (minimalist war project) : Sample.java has a "java.util.Date" attribute
When runing "maven war:install" on war project, attributes are generated as expected.
When running from "head" project using "maven multiproject:install", commons-attributes are
- generated as expected for the jar
- NOT generated in the war (no log from plugin)
I don't know if this is a maven, multiproject-plugin, war-plugin or commons-attributes-plugin bug.
Please notice commons-attributes plugin uses a preGoal to automatically register itself.
I've made some other tests: I've converter the war project in the attached zip to a simple jar.
commons-attributes plugin is executed ONLY on the FIRST project that uses it in the multiproject build.
-> this bug is not related to war plugin.
I've patched my commons-attribute plugin Jelly script to echo on <preGoal name="java:compile"> , before anything from plugin is executed.
The pregoal is NOT executed after first subproject is build by multiproject.
-> this bug is not related to commons-attributes plugin
Now, there is AFAIK only one possible source for this bug :
The reactor does not handle preGoals registration from plugins as expected (as it does on maven 1.0.x)
I don't know about maven Internals and cannot go deeper on this issue.