>>> 1) Create an exploded directory of project
>>> 2) Make necessary processing at prepare package phase
>>> 3) Create a war which has processed files
> I am not sure that I understood everything very good but I changed my
> custom plugin lifecycle to 'process-resources'. It did not help me as
> I expected.
It's the other way round!
If I understood You right, You use Your custom goal to modify the
contents of the "exploded" directory and add it to the WAR afterwards.
1) Bind the 'war:exploded' goal to the phase 'process-resources'
2) Bind Your custom goal to the phase 'prepare-package'.
3) Configure the 'war:war' goal to include the contents of the
"exploded" directory in the WAR file.
3.1) If this still doesn't work, You might additionally configure the
'war:war' goal to exclude original files from 'src/main/webapp' using
the 'warSourceExcludes' parameter.
I have to impression that You're not familiar with the build lifecycle,
might that be? See
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference.
Furthermore, You should present a little more of You configuration (or
an example that behaves similarly). It's hard to help if I have to guess
what You're really doing there ...
(If providing an example, You might e.g. configure the antrun plugin
instead of Your custom plugin)
On 14/02/11 14:43, Cem Koc wrote:
Hi,
I am not sure that I understood everything very good but I changed my custom
plugin lifecycle to 'process-resources'. It did not help me as I expected.
(Cmd: "mvn clean war:exploded package")
At the logs I could see successfully processed files. My custom plugin is
processing sources without any problem.
War goal of the war plugin is changing files I am sure about this. I tested
with (*,2.1-beta-1] and I have not encountered any problem. Just newer
version of the 2.1-beta-1 has this problem.
By the way, It might be helpful
"mvn clean war:exploded prepare-package" is working great too as a flat
directory.
thanks
Marc Rohlfs wrote:
Just for curiosity: what happens if You configure the 'prepare-war'
execution of Your test configuration for the 'process-resources' phase?
As Your custom plugin goal and the 'war:exploded' goal are both
configured for the same phase, are You sure that they're really executed
in the estimated order?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]