public class DefaultMavenArtifactProvider extends Object implements MavenArtifactProvider
MavenArtifactProvider which uses Groovy Grape to download the artifact.| Constructor and Description |
|---|
DefaultMavenArtifactProvider() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
addArtifactToCatalog(org.apache.camel.catalog.CamelCatalog camelCatalog,
String groupId,
String artifactId,
String version)
Downloads the artifact using the Maven coordinates and scans the JAR for Camel components which will be added to
the CamelCatalog.
|
void |
addMavenRepository(String name,
String url)
To add a 3rd party Maven repository.
|
protected void |
scanCamelComponents(org.apache.camel.catalog.CamelCatalog camelCatalog,
ClassLoader classLoader,
Set<String> names) |
void |
setCacheDirectory(String directory)
Configures the directory for the download cache.
|
void |
setLog(boolean log)
Sets whether to log errors and warnings to System.out.
|
public void setLog(boolean log)
public void setCacheDirectory(String directory)
MavenArtifactProvidersetCacheDirectory in interface MavenArtifactProviderdirectory - the directory.public void addMavenRepository(String name, String url)
MavenArtifactProvideraddMavenRepository in interface MavenArtifactProvidername - the repository nameurl - the repository urlpublic Set<String> addArtifactToCatalog(org.apache.camel.catalog.CamelCatalog camelCatalog, String groupId, String artifactId, String version)
MavenArtifactProvideraddArtifactToCatalog in interface MavenArtifactProvidercamelCatalog - The Camel CataloggroupId - Maven group idartifactId - Maven artifact idversion - Maven versionprotected void scanCamelComponents(org.apache.camel.catalog.CamelCatalog camelCatalog,
ClassLoader classLoader,
Set<String> names)
Apache Camel