Package org.apache.camel.catalog.maven
Interface MavenArtifactProvider
-
- All Known Implementing Classes:
DefaultMavenArtifactProvider
public interface MavenArtifactProviderProvider which allows downloading artifact using Maven and add content to theCamelCatalog.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.voidaddMavenRepository(String name, String url)To add a 3rd party Maven repository.voidsetCacheDirectory(String directory)Configures the directory for the download cache.
-
-
-
Method Detail
-
setCacheDirectory
void setCacheDirectory(String directory)
Configures the directory for the download cache. The default folder is USER_HOME/.groovy/grape- Parameters:
directory- the directory.
-
addMavenRepository
void addMavenRepository(String name, String url)
To add a 3rd party Maven repository.- Parameters:
name- the repository nameurl- the repository url
-
addArtifactToCatalog
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.- Parameters:
camelCatalog- The Camel CataloggroupId- Maven group idartifactId- Maven artifact idversion- Maven version- Returns:
- the names of the components that was added, or an empty set if none found or they already exists in the catalog
-
-