Skip to content

Commit

Permalink
Fallback to settings.xml for MavenExecutionContextView.getLocalReposi…
Browse files Browse the repository at this point in the history
…tory (#4484)
  • Loading branch information
timtebeek authored Sep 11, 2024
1 parent 7f14d4a commit 4edba6d
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,15 @@ public MavenExecutionContextView setLocalRepository(MavenRepository localReposit
}

public MavenRepository getLocalRepository() {
return getMessage(MAVEN_LOCAL_REPOSITORY, MAVEN_LOCAL_DEFAULT);
MavenRepository configuredProperty = getMessage(MAVEN_LOCAL_REPOSITORY);
if (configuredProperty != null) {
return configuredProperty;
}
MavenSettings settings = getSettings();
if (settings != null) {
return settings.getMavenLocal();
}
return MAVEN_LOCAL_DEFAULT;
}

public MavenExecutionContextView setAddLocalRepository(boolean useLocalRepository) {
Expand Down

0 comments on commit 4edba6d

Please sign in to comment.