I am trying to reference a profile id e.g <profile> <id>env_live</id> <properties> <profile.name>env_live</profile.name> </properties> </profile>
at the moment I have to declare a property (see profile.name above) that is the same as the profile id. I then use the profile.name in the filtering specification e.g. <filters> <filter>src/main/filters/${profile.name}/filter.properties</filter> </filters> What I'd like to do is just pick up the profile id in the filter something like this <filters> <filter>src/main/filters/${project.profiles.profile.id }/filter.properties</filter> </filters> But if I try mvn projecthelp:effective-pom it is not replacing ${project.profiles.profile.id} Any ideas how to achieve this ? The overall Use Case is to allow filters by profile, but without having to list each profile as there could be many instances of system test environments e.g systest1 , systest2 ....