Class DefaultMavenArtifactProvider

java.lang.Object
org.apache.camel.catalog.maven.DefaultMavenArtifactProvider
All Implemented Interfaces:
MavenArtifactProvider

@Deprecated(since="4.6.0") public class DefaultMavenArtifactProvider extends Object implements MavenArtifactProvider
Deprecated.
use org.apache.camel.tooling.maven.support.MavenDownloader from camel-tooling-maven instead.
Default MavenArtifactProvider which uses Groovy Grape to download the artifact.
  • Constructor Details

    • DefaultMavenArtifactProvider

      public DefaultMavenArtifactProvider()
      Deprecated.
  • Method Details

    • setLog

      public void setLog(boolean log)
      Deprecated.
      Sets whether to log errors and warnings to System.out. By default nothing is logged.
    • setLogger

      public void setLogger(org.slf4j.Logger logger)
      Deprecated.
    • setCacheDirectory

      public void setCacheDirectory(String directory)
      Deprecated.
      Description copied from interface: MavenArtifactProvider
      Configures the directory for the download cache.

      The default directory is provider dependant.

      Specified by:
      setCacheDirectory in interface MavenArtifactProvider
      Parameters:
      directory - the directory.
    • addMavenRepository

      public void addMavenRepository(String name, String url)
      Deprecated.
      Description copied from interface: MavenArtifactProvider
      To add a 3rd party Maven repository.
      Specified by:
      addMavenRepository in interface MavenArtifactProvider
      Parameters:
      name - the repository name
      url - the repository url
    • addArtifactToCatalog

      public Set<String> addArtifactToCatalog(org.apache.camel.catalog.CamelCatalog camelCatalog, String groupId, String artifactId, String version)
      Deprecated.
      Description copied from interface: MavenArtifactProvider
      Downloads the artifact using the Maven coordinates and scans the JAR for Camel components which will be added to the CamelCatalog.
      Specified by:
      addArtifactToCatalog in interface MavenArtifactProvider
      Parameters:
      camelCatalog - The Camel Catalog
      groupId - Maven group id
      artifactId - Maven artifact id
      version - 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
    • scanCamelComponents

      protected void scanCamelComponents(org.apache.camel.catalog.CamelCatalog camelCatalog, ClassLoader classLoader, Set<String> names)
      Deprecated.