How to define conditional properties in maven?
For instance, I would like to have property Configuration set to ${env:AAA} if there is an environment variable AAA and to some other constant value if there is no such environment variable. How do I do it in maven 2? It appears as though you activate a profile conditionally ... <profiles> <profile> <activation> <property> <name>environment</name> <value>test</value> </property> </activation> ... </profile> </profiles> The profile will be activate when the environment variable is defined to the value test as in the following command: mvn ... -Denvironment=test On the off-chance that a system