I want to use different filters for each <env> so I created my filter
declaration like:

        <filters>

<filter>${projectRoot}/src/main/filters/filter-${env}.properties</filter>
        </filters>


now in my profiles.xml I have:

    <activeProfiles>
        <activeProfile>local</activeProfile>
    </activeProfiles>


    <profiles>
        <profile>
            <id>local</id>
            <activation>
                <activeByDefault/>
            </activation>
            <properties>
                <env>local</env>
            </properties>
        </profile>

        <profile>
            <id>dev</id>
            <properties>
                <env>dev</env>
            </properties>
        </profile>


I have a filter-local.properties and a filter-dev.properties.

Even though I run:

mvn -P dev clean package -e

I still only get the filter-local.properties used.


How can achieve environment specific filtering?



-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---

Reply via email to