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); } }
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; }
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"); }