public class MavenDependencyAdapter extends org.apache.maven.model.Dependency implements Dependency
Constructor and Description |
---|
MavenDependencyAdapter(org.apache.maven.model.Dependency dep) |
MavenDependencyAdapter(Dependency dep) |
MavenDependencyAdapter(org.eclipse.aether.graph.Dependency dep) |
Modifier and Type | Method and Description |
---|---|
static List<Dependency> |
fromAetherList(List<org.eclipse.aether.graph.Dependency> dependencies) |
static List<Dependency> |
fromMavenList(List<org.apache.maven.model.Dependency> dependencies) |
FileResource<?> |
getArtifact()
Returns the file representing this artifact
|
Coordinate |
getCoordinate()
Get the
Coordinate for this Dependency |
List<Coordinate> |
getExcludedCoordinates()
Returns the set of
Coordinate instances that are excluded from this Dependency child hierarchy. |
String |
getScope() |
String |
getScopeType()
Get the scope type of this
Dependency |
String |
getType() |
static List<org.apache.maven.model.Dependency> |
toMavenList(List<Dependency> dependencies) |
String |
toString() |
addExclusion, clone, getArtifactId, getClassifier, getExclusions, getGroupId, getLocation, getManagementKey, getOptional, getSystemPath, getVersion, isOptional, removeExclusion, setArtifactId, setClassifier, setExclusions, setGroupId, setLocation, setOptional, setOptional, setScope, setSystemPath, setType, setVersion
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isOptional
public MavenDependencyAdapter(org.apache.maven.model.Dependency dep)
public MavenDependencyAdapter(Dependency dep)
public MavenDependencyAdapter(org.eclipse.aether.graph.Dependency dep)
public Coordinate getCoordinate()
Dependency
Coordinate
for this Dependency
getCoordinate
in interface Dependency
public FileResource<?> getArtifact() throws DependencyException
Dependency
getArtifact
in interface Dependency
DependencyException
public String getScope()
getScope
in class org.apache.maven.model.Dependency
public String getScopeType()
Dependency
Dependency
getScopeType
in interface Dependency
public List<Coordinate> getExcludedCoordinates()
Dependency
Coordinate
instances that are excluded from this Dependency
child hierarchy.getExcludedCoordinates
in interface Dependency
public static List<Dependency> fromMavenList(List<org.apache.maven.model.Dependency> dependencies)
public static List<org.apache.maven.model.Dependency> toMavenList(List<Dependency> dependencies)
public String getType()
getType
in class org.apache.maven.model.Dependency
public String toString()
toString
in class org.apache.maven.model.Dependency
public static List<Dependency> fromAetherList(List<org.eclipse.aether.graph.Dependency> dependencies)
Copyright © 2014 JBoss by Red Hat. All rights reserved.