You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tim Pizey <ti...@gmail.com> on 2012/05/10 18:44:23 UTC
Filters only work in 3.0.4
Hi,
I have a filters block:
<filters>
<filter>/etc/${project.artifactId}/${project.artifactId}.properties</filter>
</filters>
as given here:
http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
I was delighted with this!
However I find that this has only started to work in 3.0.4, which I happened
to have on my laptop.
It does not work on 3.0.3, I have tried many combinations of
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-filtering</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
but these do not seem to have had any effect.
I can update to 3.0.4 on the build server, but it would be nice find a
configuration which worked on 3.0.3
and 2.x maven as well.
cheers
Tim
--
Tim Pizey - http://pizey.net/~timp
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Filters only work in 3.0.4
Posted by Tim Pizey <ti...@gmail.com>.
On 10 May 2012 17:44, I wrote:
> Hi,
>
> I have a filters block:
> <filters>
> <filter>/etc/${project.artifactId}/${project.artifactId}.properties</filter>
> </filters>
> as given here:
> http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
> I was delighted with this!
>
> However I find that this has only started to work in 3.0.4, which I happened
> to have on my laptop.
>
> It does not work on 3.0.3, I have tried many combinations of
>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-resources-plugin</artifactId>
> <version>2.5</version>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven.shared</groupId>
> <artifactId>maven-filtering</artifactId>
> <version>1.0</version>
> </dependency>
> </dependencies>
> </plugin>
> </plugins>
> </pluginManagement>
>
> but these do not seem to have had any effect.
>
> I can update to 3.0.4 on the build server, but it would be nice find a
> configuration which worked on 3.0.3
> and 2.x maven as well.
>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
</plugin>
</plugins>
</pluginManagement>
Does enable the <filters> to work on 3.0.3 and 3.0.4, have not tested on 2.x
cheers
Tim
--
Tim Pizey - http://pizey.net/~timp
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org