Thanks for the help Max.
You can specify snapshot version to be used if you
1) define the plugin repository
<pluginRepositories>
<pluginRepository>
<id>maven-plugins-snapshots</id>
<url>http://snapshots.maven.codehaus.org/maven2</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
....
2) define the version of the plugin you want to use
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0-beta-3-SNAPSHOT</version>
</plugin>
</plugins>
....
However i did this for the war plugin, the resources don't get filtered
using above configuration so i'm wondering if there is anything else i
should do in the pom to make it work. Right now i'm only doing this, which
IMO is the most logical way it should work.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0-beta-3-SNAPSHOT</version>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/webapp</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
Any thoughts ?
Jorg
On 5/10/06, Max Cooper <[EMAIL PROTECTED]> wrote:
I also needed some functionality that has been added to the
maven-war-plugin but hasn't been released yet (i.e. it is not in
maven-2.0.4).
I grabbed the source tree for maven-war-plugin from subversion and added
it to my project as another module (with a README file to tell my team
not to modify it, and that it can be removed after the next maven
release). My experience was that simply adding the plugin module to my
project (including adding it as a module in the parent pom) caused the
build to use it (rather than using a released version of
maven-war-plugin) -- no further configuration was necessary.
Perhaps there is a better way to do it. Maybe using a snapshot of
maven-war-plugin or something. But I am not sure how to do that, or even
if there is a snapshot of maven-war-plugin available.
-Max
Jorg Heymans wrote:
> Hi,
>
> According to [1], it should now be possible to apply standard resource
> filtering to war resources. I haven't been able to get this to work
> however,
> and the issue is not clear on exactly how one can take advantage of the
> fix.
>
> There is ofcourse the workaround using a temporary directory to write
the
> filter results to, as suggested here [2], but i'ld rather just use the
> standard mechanism now that it has been fixed.
>
> Any ideas on how to get this to work ?
>
> Regards
> Jorg
>
> [1] http://jira.codehaus.org/browse/MWAR-12
> [2] http://article.gmane.org/gmane.comp.jakarta.turbine.maven.user/28129
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]