Repository navigation
fix: avoid mutating settings when showing passwords - #439
Merged
slachiewicz merged 1 commit intoOct 27, 2026
Merged
Conversation
Comment on lines
+193
to
+202
| List<Profile> clonedProfiles = new ArrayList<>(settings.getProfiles().size()); | ||
| for (Profile profile : settings.getProfiles()) { | ||
| Profile clonedProfile = profile.clone(); | ||
| Properties clonedProperties = new Properties(); | ||
| clonedProperties.putAll(profile.getProperties()); | ||
| clonedProfile.setProperties(clonedProperties); | ||
| clonedProfiles.add(clonedProfile); | ||
| } | ||
| clone.setProfiles(clonedProfiles); | ||
|
|
Contributor
Author
There was a problem hiding this comment.
Signed-off-by: Efe Gökdemir <[email protected]>
slachiewicz
force-pushed
the
codex/issue-385-copy-settings
branch
from
October 27, 2026 20:56
3e9e4e8 to
eae3b79
Compare
|
This was referenced Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
help:effective-settings -DshowPasswords=truecurrently passes Maven's liveSettingsobject to cleanup code, which replaces each profile's properties with a sorted copy. This mutates shared Maven state during report generation.Changes
showPasswordspath.Testing
mvn -B -DskipITs -Dspotless.check.skip=true -Dspotless.apply.skip=true test— passed (31 tests).JAVA_HOME=/opt/homebrew/Cellar/openjdk@21/21.0.12.1/libexec/openjdk.jdk/Contents/Home PATH="$JAVA_HOME/bin:$PATH" mvn -B spotless:check— passed.git diff --check— passed.Fixes #385