Java 类org.apache.camel.catalog.maven.DefaultMavenArtifactProvider 实例源码

项目:syndesis-rest    文件:ConnectorCatalog.java   
public ConnectorCatalog(ConnectorCatalogProperties props) {

        connectorCatalog = new DefaultCamelConnectorCatalog();
        camelCatalog = new DefaultCamelCatalog(true);

        prefetchConnectors();

        maven = new DefaultMavenArtifactProvider();

        for (Map.Entry<String, String> repo : props.getMavenRepos().entrySet()) {
            maven.addMavenRepository(repo.getKey(), repo.getValue());
        }

        for (String gav : props.getConnectorGAVs()) {
            addConnector(gav);
        }
    }
项目:syndesis    文件:DeploymentDescriptorIT.java   
private static MavenArtifactProvider createArtifactProvider() {
    final DefaultMavenArtifactProvider mavenArtifactProvider = new DefaultMavenArtifactProvider();
    mavenArtifactProvider.setLog(true);

    mavenArtifactProvider.addMavenRepository("maven.central", "https://repo1.maven.org/maven2");
    mavenArtifactProvider.addMavenRepository("redhat.ga", "https://maven.repository.redhat.com/ga");
    mavenArtifactProvider.addMavenRepository("jboss.ea", "https://repository.jboss.org/nexus/content/groups/ea");

    return mavenArtifactProvider;
}
项目:syndesis    文件:ConnectorCatalog.java   
public void init() throws Exception {
    connectorCatalog = new DefaultCamelConnectorCatalog();
    camelCatalog = new DefaultCamelCatalog(true);

    maven = new DefaultMavenArtifactProvider();

    // add 3rd party maven repos
    System.out.println("Adding bintray and jcenter as 3rd party Maven repositories");
    maven.addMavenRepository("jcenter", "https://jcenter.bintray.com");
}
项目:connectors    文件:ConnectorCatalog.java   
public void init() throws Exception {
    connectorCatalog = new DefaultCamelConnectorCatalog();
    camelCatalog = new DefaultCamelCatalog(true);

    maven = new DefaultMavenArtifactProvider();

    // add 3rd party maven repos
    System.out.println("Adding bintray and jcenter as 3rd party Maven repositories");
    maven.addMavenRepository("jcenter", "https://jcenter.bintray.com");
}
项目:syndesis-rest    文件:DeploymentDescriptorIT.java   
private static MavenArtifactProvider createArtifactProvider() {
    final DefaultMavenArtifactProvider mavenArtifactProvider = new DefaultMavenArtifactProvider();
    mavenArtifactProvider.setLog(true);

    mavenArtifactProvider.addMavenRepository("maven.central", "https://repo1.maven.org/maven2");
    mavenArtifactProvider.addMavenRepository("redhat.ga", "https://maven.repository.redhat.com/ga");
    mavenArtifactProvider.addMavenRepository("jboss.ea", "https://repository.jboss.org/nexus/content/groups/ea");

    return mavenArtifactProvider;
}