in src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java [91:112]
private void getActiveProfileStatement(MavenProject project, StringBuilder message) {
Map<String, List<String>> activeProfileIds = project.getInjectedProfileIds();
message.append(LS);
message.append("Active Profiles for Project '").append(project.getId()).append("':");
message.append(LS).append(LS);
if (activeProfileIds.isEmpty()) {
message.append("There are no active profiles.");
} else {
message.append("The following profiles are active:").append(LS);
for (Map.Entry<String, List<String>> entry : activeProfileIds.entrySet()) {
for (String profileId : entry.getValue()) {
message.append(LS).append(" - ").append(profileId);
message.append(" (source: ").append(entry.getKey()).append(")");
}
}
}
message.append(LS);
}