Hello Everyone,

I have a scenario where I need to make tweaks to a war and repackage
it. Initially, I thought that creating a maven war project would be
perfect for this as I would be able to use overlays to replace/add
files as I wish. And I still think this is a good idea. But in
addition to that, I have realized that for some files ... like
localized properties files ... I really do not want to replace them
via an overlay because I do not have the knowledge to prepare all the
translations ahead of time. Rather I want to edit just a few well
known key=value pairs in the localized properties files.

I have written a properties-editor-maven-plugin to do this but the
problem is that the extraction of the war-dependency is not part of
any maven phase, so I can't get a hook between the
dependency-war-extraction and the webapp build processes.

It all seems to happen atomically in the maven war plugin:
[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] Assembling webapp[customWebapp] in [C:\dev\target\customWebapp]
[INFO] Processing war project
[INFO] Copying webapp resources[C:\dev\src\main\webapp]
[INFO] Processing overlay[ id just.some.package:mywar]
[INFO] Webapp assembled in[XXXXX msecs]
[INFO] Building war: C:\dev\target\customWebapp.war

I am guessing that the mywar.war file gets expanded onto the
file-system and then the overlay processed in the following step:
[INFO] Processing overlay[ id just.some.package:mywar]

How do I get between that step and the step indicated by the following log?
[INFO] Webapp assembled in[XXXXX msecs]

Thanks!
- Pulkit

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to