Class DependencyHelperFactory


  • public class DependencyHelperFactory
    extends Object
    Service-locator based factory for available Aether system.

    Supports the Eclipse implementation for Maven 3.1.x+

    • Constructor Detail

      • DependencyHelperFactory

        public DependencyHelperFactory()
    • Method Detail

      • createDependencyHelper

        public static DependencyHelper createDependencyHelper​(org.codehaus.plexus.PlexusContainer container,
                                                              org.apache.maven.project.MavenProject mavenProject,
                                                              org.apache.maven.execution.MavenSession mavenSession,
                                                              int cacheSize,
                                                              org.apache.maven.plugin.logging.Log log)
                                                       throws org.apache.maven.plugin.MojoExecutionException
        Create a new DependencyHelper based on what has been found in PlexusContainer.
        Parameters:
        container - The Maven Plexus container to use.
        mavenProject - The Maven project to use.
        mavenSession - The Maven session.
        cacheSize - Size of the artifact/file LRU cache
        log - The log to use for the messages.
        Returns:
        The DependencyHelper depending of the Maven version used.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If the plugin execution fails.