Package org.apache.camel.catalog.maven
Interface MavenArtifactProvider
- All Known Implementing Classes:
DefaultMavenArtifactProvider
public interface MavenArtifactProvider
Provider which allows downloading artifact using Maven and add content to the
CamelCatalog.-
Method Summary
Modifier and TypeMethodDescriptionaddArtifactToCatalog(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 Details
-
setCacheDirectory
Configures the directory for the download cache. The default folder is USER_HOME/.groovy/grape- Parameters:
directory- the directory.
-
addMavenRepository
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
-