@@ -145,41 +145,76 @@ public abstract class LocalPathPrefixComposerFactorySupport implements LocalPath
145145
146146 public static final String DEFAULT_SNAPSHOTS_PREFIX = "snapshots" ;
147147
148+ // Legacy support: properties were renamed in Resolver 2.0.x, but we should support 1.9.x properties as well
149+ // These below are Resolver 1.9.x properties, are undocumented and shall be removed with Resolver 2.1.x (or later).
150+
151+ private static final String R1_CONF_PROP_SPLIT = "aether.enhancedLocalRepository.split" ;
152+
153+ private static final String R1_CONF_PROP_LOCAL_PREFIX = "aether.enhancedLocalRepository.localPrefix" ;
154+
155+ private static final String R1_CONF_PROP_SPLIT_LOCAL = "aether.enhancedLocalRepository.splitLocal" ;
156+
157+ private static final String R1_CONF_PROP_REMOTE_PREFIX = "aether.enhancedLocalRepository.remotePrefix" ;
158+
159+ private static final String R1_CONF_PROP_SPLIT_REMOTE = "aether.enhancedLocalRepository.splitRemote" ;
160+
161+ private static final String R1_CONF_PROP_SPLIT_REMOTE_REPOSITORY =
162+ "aether.enhancedLocalRepository.splitRemoteRepository" ;
163+
164+ private static final String R1_CONF_PROP_SPLIT_REMOTE_REPOSITORY_LAST =
165+ "aether.enhancedLocalRepository.splitRemoteRepositoryLast" ;
166+
167+ private static final String R1_CONF_PROP_RELEASES_PREFIX = "aether.enhancedLocalRepository.releasesPrefix" ;
168+
169+ private static final String R1_CONF_PROP_SNAPSHOTS_PREFIX = "aether.enhancedLocalRepository.snapshotsPrefix" ;
170+
148171 protected boolean isSplit (RepositorySystemSession session ) {
149- return ConfigUtils .getBoolean (session , DEFAULT_SPLIT , CONFIG_PROP_SPLIT );
172+ return ConfigUtils .getBoolean (session , DEFAULT_SPLIT , CONFIG_PROP_SPLIT , R1_CONF_PROP_SPLIT );
150173 }
151174
152175 protected String getLocalPrefix (RepositorySystemSession session ) {
153- return ConfigUtils .getString (session , DEFAULT_LOCAL_PREFIX , CONFIG_PROP_LOCAL_PREFIX );
176+ return ConfigUtils .getString (
177+ session , DEFAULT_LOCAL_PREFIX , CONFIG_PROP_LOCAL_PREFIX , R1_CONF_PROP_LOCAL_PREFIX );
154178 }
155179
156180 protected boolean isSplitLocal (RepositorySystemSession session ) {
157- return ConfigUtils .getBoolean (session , DEFAULT_SPLIT_LOCAL , CONFIG_PROP_SPLIT_LOCAL );
181+ return ConfigUtils .getBoolean (session , DEFAULT_SPLIT_LOCAL , CONFIG_PROP_SPLIT_LOCAL , R1_CONF_PROP_SPLIT_LOCAL );
158182 }
159183
160184 protected String getRemotePrefix (RepositorySystemSession session ) {
161- return ConfigUtils .getString (session , DEFAULT_REMOTE_PREFIX , CONFIG_PROP_REMOTE_PREFIX );
185+ return ConfigUtils .getString (
186+ session , DEFAULT_REMOTE_PREFIX , CONFIG_PROP_REMOTE_PREFIX , R1_CONF_PROP_REMOTE_PREFIX );
162187 }
163188
164189 protected boolean isSplitRemote (RepositorySystemSession session ) {
165- return ConfigUtils .getBoolean (session , DEFAULT_SPLIT_REMOTE , CONFIG_PROP_SPLIT_REMOTE );
190+ return ConfigUtils .getBoolean (
191+ session , DEFAULT_SPLIT_REMOTE , CONFIG_PROP_SPLIT_REMOTE , R1_CONF_PROP_SPLIT_REMOTE );
166192 }
167193
168194 protected boolean isSplitRemoteRepository (RepositorySystemSession session ) {
169- return ConfigUtils .getBoolean (session , DEFAULT_SPLIT_REMOTE_REPOSITORY , CONFIG_PROP_SPLIT_REMOTE_REPOSITORY );
195+ return ConfigUtils .getBoolean (
196+ session ,
197+ DEFAULT_SPLIT_REMOTE_REPOSITORY ,
198+ CONFIG_PROP_SPLIT_REMOTE_REPOSITORY ,
199+ R1_CONF_PROP_SPLIT_REMOTE_REPOSITORY );
170200 }
171201
172202 protected boolean isSplitRemoteRepositoryLast (RepositorySystemSession session ) {
173203 return ConfigUtils .getBoolean (
174- session , DEFAULT_SPLIT_REMOTE_REPOSITORY_LAST , CONFIG_PROP_SPLIT_REMOTE_REPOSITORY_LAST );
204+ session ,
205+ DEFAULT_SPLIT_REMOTE_REPOSITORY_LAST ,
206+ CONFIG_PROP_SPLIT_REMOTE_REPOSITORY_LAST ,
207+ R1_CONF_PROP_SPLIT_REMOTE_REPOSITORY_LAST );
175208 }
176209
177210 protected String getReleasesPrefix (RepositorySystemSession session ) {
178- return ConfigUtils .getString (session , DEFAULT_RELEASES_PREFIX , CONFIG_PROP_RELEASES_PREFIX );
211+ return ConfigUtils .getString (
212+ session , DEFAULT_RELEASES_PREFIX , CONFIG_PROP_RELEASES_PREFIX , R1_CONF_PROP_RELEASES_PREFIX );
179213 }
180214
181215 protected String getSnapshotsPrefix (RepositorySystemSession session ) {
182- return ConfigUtils .getString (session , DEFAULT_SNAPSHOTS_PREFIX , CONFIG_PROP_SNAPSHOTS_PREFIX );
216+ return ConfigUtils .getString (
217+ session , DEFAULT_SNAPSHOTS_PREFIX , CONFIG_PROP_SNAPSHOTS_PREFIX , R1_CONF_PROP_SNAPSHOTS_PREFIX );
183218 }
184219
185220 /**
0 commit comments