In Maven 2, I was able to set profile properties like these:

```
<profiles>
    <profile>
        <id>test</id>
        <properties>
            <region>test</region>
            <application-url>http://localhost:8080/myTestApp</application-url>
            <cookie-name>TestCookie</cookie-name>
        </properties>
    </profile>

    <profile>
        <id>production</id>
        <properties>
            <region>production</region>
            <application-url>http://prodserver/myProductionApp</application-url>
            <cookie-name>ProductionCookie</cookie-name>
        </properties>
    </profile>
<profiles>

```

At compile time Maven would replace these configuration values in my spring beans. For instance, if I had a spring bean defined like this:

```
<bean id="cookie-name" class="java.lang.String">
    <constructor-arg value="${cookie-name}"/>
</bean>

```

and I specified `-P test` when i build the project, Maven would set the set the bean to look like 

```
<bean id="cookie-name" class="java.lang.String">
    <constructor-arg value="TestCookie"/>
</bean>

```

and when I specified `-P production`, maven again replaced the text with the correct property

```
<bean id="cookie-name" class="java.lang.String">
    <constructor-arg value="ProductionCookie"/>
</bean>

```

As the number of environments and customers we support has increased, I've been taking more advantage of this functionality.

I've tried to upgrade to Maven 3, but it seems like this behavior has disappeared or is broken. I can't seem to find what it has been replaced by. 

Anyone have any insights on how or if I can upgrade to Maven3 while preserving this behavior?