Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:maven 3
-
Testcase included:yes
-
Number of attachments :
Description
Shortly I am trying to modify the contents of the "exploded" directory before package phase. I was successfully modifying contents of the exploded directories before updating my war plugin.
My goal was
1) Creating an exploded directory of the sources.
2) Modifying contents with Replace plugin
3) Creating a war file including modified files
To recreate issue,
*) mvn clean prepare-package --> This will create as expected file.
*) mvn clean package --> This will replace again modified file with old one.
Thanks
That does not sound a bug to me. The problem you're having is that the war plugin does not run in the "prepare-package" phase and hence you cannot hook into it. That's why you're invoking the plugin manually which is useless since the default profile will kick in and the package phase will call the war plugin again (you can see that in the logs). And this call of course is a regular call which will do without your custom changes.