I have a local profile in my settings.xml that is activeby default. I am
trying to solve:

I want to switch filters based on environment:

        <filters>

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

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

SO I would like to keep local as the default:

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

Then if I add -P dev7777 I want to then have Maven override this:

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

Is this the proper way to do this for multi-module project?


-- 
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