in src/main/java/org/apache/maven/artifact/ant/Pom.java [468:490]
private ProfileManager getActivatedProfiles()
{
ProfileManager profileManager = getProfileManager();
for ( Profile profile : getProfiles() )
{
if ( profile.getId() == null )
{
throw new BuildException( "Attribute \"id\" is required for profile in pom type." );
}
if ( profile.getActive() == null || Boolean.valueOf( profile.getActive() ).booleanValue() )
{
profileManager.explicitlyActivate( profile.getId() );
}
else
{
profileManager.explicitlyDeactivate( profile.getId() );
}
}
return profileManager;
}