Activation of maven profile based on multiple properties
问题 I am creating a maven 2 build for a project and I came up with profiles since the build has to be created for both different locations (say Berlin, Paris, North Pole) and different environment (Development, Production). Those are specified via properties. So for "North Pole" "DEV" I do: -Dlocation=NorthPole -Denvironment=DEV Now I would like to acivate my porfile based on both these properties, not just one. So I tried following: <profiles> <profile> <id>NOrth Pole DEV</id> <activation>