Copying of the wepresources is done by the same plugin as the
packaging of the war. There is no way you can come in between that.
A possible solution would be too configure the war plugin to not copy
the resources you want to process and include the generated resources:
<webResources>
<resource>
<directory>/src/main/webapp</directory>
<filtering>false</filtering>
<excludes>
<exclude>**/*.css</exclude>
</excludes>
</resource>
<resource>
<directory>/target/generated-files/processed-resources</directory>
<filtering>false</filtering>
</resource>
</webResources>
Now bind your plugin to generate-resources phase and output your
processed resources to target/generated-files/processed-resources.
Hth,
Nick Stolwijk
~Java Developer~
IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl
On Sun, Sep 20, 2009 at 7:03 PM, Samuel Santos <[email protected]> wrote:
> Sorry about the fist mail, it was a bit too vague.
>
> Lets say that I want to do something with my CSS files before the war
> generation.
>
> If I configure it to be executed during the package phase it's too late
> because the war has already been generated.
> <groupId>...</groupId>
> <artifactId>...</artifactId>
> <version>...</version>
> <executions>
> <execution>
> <phase>package</phase>
> <configuration>
> <cssFiles>do something...</cssFiles>
> </configuration>
> <goals>
> <goal>...</goal>
> </goals>
> </execution>
> </executions>
>
> If I configure it to be executed during the test phase it's too soon because
> the web resources files have not yet been copied.
> <groupId>...</groupId>
> <artifactId>...</artifactId>
> <version>...</version>
> <executions>
> <execution>
> <phase>test</phase>
> <configuration>
> <cssFiles>do something...</cssFiles>
> </configuration>
> <goals>
> <goal>...</goal>
> </goals>
> </execution>
> </executions>
>
> Is there any solution for this?
>
> Thanks and regards,
>
> --
> Samuel Santos
> http://www.samaxes.com/
>
>
> On Sun, Sep 20, 2009 at 5:47 PM, Samuel Santos <[email protected]> wrote:
>
>> Hello all,
>>
>> I'm developing a Maven plugin that need to be executed between the weapp
>> webResources copy and the war generation during the war:war goal.
>>
>> How can this be achieved?
>>
>> Kind regards,
>>
>> --
>> Samuel Santos
>> http://www.samaxes.com/
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]