Yes, we are filtering some resources using maven-resources-plugin, but not
those
resources that are being overwriten.
I have already found a working solution.
First of all, I defined in yui compressor alternative output directory in
/target. For example /target/preassembly.
Then I defined in maven-war-plugin alternative source directory
/target/preassembly.
Here is the configuration (without irrelevant rows):
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<directory>
${project.build.directory}/preassembly</directory>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>net.sf.alchim</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId
>
<configuration>
<webappDirectory>
${project.build.directory}/preassembly</webappDirectory>
</configuration>
</plugin>
Thanks for your interest Wayne.
David Benes
From:
Wayne Fay <[email protected]>
To:
Maven Users List <[email protected]>
Date:
23.11.2009 17:51
Subject:
Re: phase war:war->"Copying webapp resources" overwrites already processed
resources
>Are you using any filtering while processing your resources, or no?
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]