Yes, is possible, I did it in my work recently. But, there is a better way. 
Notice what I'm doing. I have 4 profiles, activated with a var called env. So, 
when I call maven I always do:

mvn -Denv=pre compile (or anything)

I have four files called ${env}.pom.properties. So, you can put this in your 
main build tag:

<filters>
        <filter>${env}.pom.properties</filter>
<filters>

So, when activate pre profile, the properties file loaded is pre.pom.properties.

El 25/01/2010, a las 21:01, <[email protected]> escribió:

> Is it possible to define filters by profile? See below for example.
> 
>  <build>
>    ...
>    <filters>
>      <filter> [a filter property] </filter>
>    </filters>
>    ...
>  </build>
> 
> Thanks,
> 
> David

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to