public class DependencyHelperFactory extends Object
Service-locator based factory for available Aether system (Sonatype for Maven 3.0.x or Eclipse for Maven 3.1.x)
| Constructor and Description |
|---|
DependencyHelperFactory() |
| Modifier and Type | Method and Description |
|---|---|
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)
Create a new
DependencyHelper based on what has been found in PlexusContainer |
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
karaf-maven-plugin depends on maven-core:3.0, so for Maven 3.0.x, it may use this API directly.
When using Maven 3.1.x/3.2.x, it should use reflection to invoke org.apache.maven.RepositoryUtils.toArtifact(Artifact)
as this method directly references specific Aether implementation.
When karaf-maven-plugin switches to maven-core:3.1.0+, reflection should be use for Sonatype variant of Aether.
container - The Maven Plexus container to use.mavenProject - The Maven project to use.mavenSession - The Maven session.log - The log to use for the messages.DependencyHelper depending of the Maven version used.org.apache.maven.plugin.MojoExecutionException - If the plugin execution fails.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.