We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f14d4a commit 4edba6dCopy full SHA for 4edba6d
rewrite-maven/src/main/java/org/openrewrite/maven/MavenExecutionContextView.java
@@ -141,7 +141,15 @@ public MavenExecutionContextView setLocalRepository(MavenRepository localReposit
141
}
142
143
public MavenRepository getLocalRepository() {
144
- return getMessage(MAVEN_LOCAL_REPOSITORY, MAVEN_LOCAL_DEFAULT);
+ MavenRepository configuredProperty = getMessage(MAVEN_LOCAL_REPOSITORY);
145
+ if (configuredProperty != null) {
146
+ return configuredProperty;
147
+ }
148
+ MavenSettings settings = getSettings();
149
+ if (settings != null) {
150
+ return settings.getMavenLocal();
151
152
+ return MAVEN_LOCAL_DEFAULT;
153
154
155
public MavenExecutionContextView setAddLocalRepository(boolean useLocalRepository) {
0 commit comments