apache / apache/maven-help-plugin

AllProfilesMojo settings profiles never tracked for active status

Open
#395 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
29
Forks
42
Avg merge
1d 12h
Merged PRs (30d)
6

Description

In src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java:167-173:

private void addSettingsProfiles(Map 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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java at addSettingsProfiles(), lines 167-173, and trace how allProfilesByIds and activeProfilesByIds are populated from project.getActiveProfiles(). Verify the behavior for settings profiles and add or update coverage where the project’s tests exercise profile activity; done means active settings profiles are reported consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.