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,
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, 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 - mavenProject - mavenSession - log - org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.