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