Java 类org.springframework.boot.cli.compiler.maven.MavenSettingsReader 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:RepositoryConfigurationFactory.java   
/**
 * Create a new default repository configuration.
 * @return the newly-created default repository configuration
 */
public static List<RepositoryConfiguration> createDefaultRepositoryConfiguration() {
    MavenSettings mavenSettings = new MavenSettingsReader().readSettings();
    List<RepositoryConfiguration> repositoryConfiguration = new ArrayList<RepositoryConfiguration>();
    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;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:SettingsXmlRepositorySystemSessionAutoConfiguration.java   
private MavenSettings getSettings(DefaultRepositorySystemSession session) {
    MavenSettings settings = new MavenSettingsReader().readSettings();
    session.setOffline(settings.getOffline());
    session.setMirrorSelector(settings.getMirrorSelector());
    session.setAuthenticationSelector(settings.getAuthenticationSelector());
    session.setProxySelector(settings.getProxySelector());
    return settings;
}
项目:spring-boot-concourse    文件:RepositoryConfigurationFactory.java   
/**
 * Create a new default repository configuration.
 * @return the newly-created default repository configuration
 */
public static List<RepositoryConfiguration> createDefaultRepositoryConfiguration() {
    MavenSettings mavenSettings = new MavenSettingsReader().readSettings();
    List<RepositoryConfiguration> repositoryConfiguration = new ArrayList<RepositoryConfiguration>();
    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;
}
项目:spring-boot-concourse    文件:SettingsXmlRepositorySystemSessionAutoConfiguration.java   
private MavenSettings getSettings(DefaultRepositorySystemSession session) {
    MavenSettings settings = new MavenSettingsReader().readSettings();
    session.setOffline(settings.getOffline());
    session.setMirrorSelector(settings.getMirrorSelector());
    session.setAuthenticationSelector(settings.getAuthenticationSelector());
    session.setProxySelector(settings.getProxySelector());
    return settings;
}
项目:contestparser    文件:RepositoryConfigurationFactory.java   
/**
 * Create a new default repository configuration.
 * @return the newly-created default repository configuration
 */
public static List<RepositoryConfiguration> createDefaultRepositoryConfiguration() {
    MavenSettings mavenSettings = new MavenSettingsReader().readSettings();
    List<RepositoryConfiguration> repositoryConfiguration = new ArrayList<RepositoryConfiguration>();
    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;
}
项目:contestparser    文件:SettingsXmlRepositorySystemSessionAutoConfiguration.java   
private MavenSettings getSettings(DefaultRepositorySystemSession session) {
    MavenSettings settings = new MavenSettingsReader().readSettings();
    session.setOffline(settings.getOffline());
    session.setMirrorSelector(settings.getMirrorSelector());
    session.setAuthenticationSelector(settings.getAuthenticationSelector());
    session.setProxySelector(settings.getProxySelector());
    return settings;
}