In src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java:167-173:
private void addSettingsProfiles(Map<String, Profile> allProfiles) {
for (org.apache.maven.settings.Profile settingsProfile : settingsProfiles) {
Profile profile = SettingsUtils.convertFromSettingsProfile(settingsProfile);
allProfiles.put(profile.getId(), profile);
}
}
addSettingsProfiles() only populates allProfilesByIds, never activeProfilesByIds. Active detection relies on project.getActiveProfiles() which may or may not include converted settings profiles depending on Maven version and activation mechanisms. This can under-report active settings profiles.
In src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java:167-173:
private void addSettingsProfiles(Map<String, Profile> allProfiles) {
for (org.apache.maven.settings.Profile settingsProfile : settingsProfiles) {
Profile profile = SettingsUtils.convertFromSettingsProfile(settingsProfile);
allProfiles.put(profile.getId(), profile);
}
}
addSettingsProfiles() only populates allProfilesByIds, never activeProfilesByIds. Active detection relies on project.getActiveProfiles() which may or may not include converted settings profiles depending on Maven version and activation mechanisms. This can under-report active settings profiles.