I\'ve set profiles in a pom.xml, like shown as follows:
pom.xml
profileId1
As an alternative to ${project.activeProfiles[0].id} (which doesn't seem to work on older versions of maven), just define a property:
${project.activeProfiles[0].id}
dev dev
Then use ${profile-id}.
${profile-id}
Note: just make sure one is always active by default