public static List < RepositoryConfiguration > createDefaultRepositoryConfiguration ( ) { MavenSettings mavenSettings = new MavenSettingsReader ( ) . readSettings ( ) ; List < RepositoryConfiguration > repositoryConfiguration = new ArrayList <> ( ) ; repositoryConfiguration . add ( MAVEN_CENTRAL ) ; if ( ! Boolean . getBoolean ( "disableSpringSnapshotRepos" ) ) { repositoryConfiguration . add ( SPRING_MILESTONE ) ; repositoryConfiguration . add ( SPRING_SNAPSHOT ) ; } addDefaultCacheAsRepository ( mavenSettings . getLocalRepository ( ) , repositoryConfiguration ) ; addActiveProfileRepositories ( mavenSettings . getActiveProfiles ( ) , repositoryConfiguration ) ; return repositoryConfiguration ; }
Create a new default repository configuration .