public class DependencyUtils extends Object
Artifact
,
Artifact
and Dependency
Modifier and Type | Method and Description |
---|---|
static org.apache.maven.artifact.Artifact |
aetherToMaven(org.eclipse.aether.artifact.Artifact aetherArtifact,
String scope) |
static org.apache.maven.artifact.Artifact |
aetherToMaven(org.eclipse.aether.artifact.Artifact aetherArtifact,
String scope,
org.apache.maven.artifact.handler.ArtifactHandler artifactHandler) |
static org.eclipse.aether.graph.Dependency |
getManagedDependency(org.eclipse.aether.graph.Dependency dependency)
FIXME JC doesn't work because of depth < 2 in org.eclipse.aether.collection.DependencyManager
|
static org.eclipse.aether.artifact.Artifact |
mavenToAether(org.apache.maven.artifact.Artifact artifact)
Deprecated.
Since 2.0.4. Use
RepositoryUtils.toArtifact(Artifact) instead. |
static org.eclipse.aether.graph.Dependency |
mavenToDependency(org.apache.maven.artifact.Artifact artifact)
Deprecated.
Since 2.0.4. Use
RepositoryUtils.toDependency(org.apache.maven.artifact.Artifact, java.util.Collection) or
RepositoryUtils.toDependency(org.apache.maven.model.Dependency, org.eclipse.aether.artifact.ArtifactTypeRegistry)
instead |
static org.eclipse.aether.artifact.Artifact |
resolve(org.eclipse.aether.artifact.Artifact artifact) |
static void |
resolve(org.apache.maven.artifact.Artifact artifact)
Deprecated.
Prefer use of
resolve(org.eclipse.aether.artifact.Artifact) |
static org.eclipse.aether.artifact.Artifact |
resolve(org.eclipse.aether.artifact.Artifact artifact,
List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories) |
static org.eclipse.aether.resolution.DependencyResult |
resolveDependencies(org.eclipse.aether.graph.DependencyNode node,
Filter filter,
int depth)
TODO NXBT-696 manage depth limit
|
static org.eclipse.aether.artifact.Artifact |
setManagedVersion(org.eclipse.aether.artifact.Artifact artifact)
Look for a version in the project dependencyManagement for the given artifact and set it.
|
static org.eclipse.aether.artifact.Artifact |
setNewestVersion(org.eclipse.aether.artifact.Artifact artifact)
Look for the newest available version in the configured repositories.
|
static org.apache.maven.artifact.Artifact |
toMavenArtifact(org.eclipse.aether.graph.Dependency dependency) |
public static org.apache.maven.artifact.Artifact aetherToMaven(org.eclipse.aether.artifact.Artifact aetherArtifact, String scope, org.apache.maven.artifact.handler.ArtifactHandler artifactHandler)
public static org.apache.maven.artifact.Artifact toMavenArtifact(org.eclipse.aether.graph.Dependency dependency)
public static org.apache.maven.artifact.Artifact aetherToMaven(org.eclipse.aether.artifact.Artifact aetherArtifact, String scope)
@Deprecated public static org.eclipse.aether.artifact.Artifact mavenToAether(org.apache.maven.artifact.Artifact artifact)
RepositoryUtils.toArtifact(Artifact)
instead.public static org.eclipse.aether.artifact.Artifact resolve(org.eclipse.aether.artifact.Artifact artifact) throws org.eclipse.aether.resolution.ArtifactResolutionException
org.eclipse.aether.resolution.ArtifactResolutionException
public static org.eclipse.aether.artifact.Artifact resolve(org.eclipse.aether.artifact.Artifact artifact, List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories) throws org.eclipse.aether.resolution.ArtifactResolutionException
org.eclipse.aether.resolution.ArtifactResolutionException
@Deprecated public static void resolve(org.apache.maven.artifact.Artifact artifact) throws org.eclipse.aether.resolution.ArtifactResolutionException
resolve(org.eclipse.aether.artifact.Artifact)
org.eclipse.aether.resolution.ArtifactResolutionException
mavenToAether(org.apache.maven.artifact.Artifact)
@Deprecated public static org.eclipse.aether.graph.Dependency mavenToDependency(org.apache.maven.artifact.Artifact artifact)
RepositoryUtils.toDependency(org.apache.maven.artifact.Artifact, java.util.Collection)
or
RepositoryUtils.toDependency(org.apache.maven.model.Dependency, org.eclipse.aether.artifact.ArtifactTypeRegistry)
insteadpublic static org.eclipse.aether.graph.Dependency getManagedDependency(org.eclipse.aether.graph.Dependency dependency)
public static org.eclipse.aether.artifact.Artifact setManagedVersion(org.eclipse.aether.artifact.Artifact artifact)
public static org.eclipse.aether.artifact.Artifact setNewestVersion(org.eclipse.aether.artifact.Artifact artifact)
public static org.eclipse.aether.resolution.DependencyResult resolveDependencies(org.eclipse.aether.graph.DependencyNode node, Filter filter, int depth)
Copyright © 2016 Nuxeo SA. All Rights Reserved.