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, setVersionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisOptionalpublic MavenDependencyAdapter(org.apache.maven.model.Dependency dep)
public MavenDependencyAdapter(Dependency dep)
public MavenDependencyAdapter(org.eclipse.aether.graph.Dependency dep)
public Coordinate getCoordinate()
DependencyCoordinate for this DependencygetCoordinate in interface Dependencypublic FileResource<?> getArtifact() throws DependencyException
DependencygetArtifact in interface DependencyDependencyExceptionpublic String getScope()
getScope in class org.apache.maven.model.Dependencypublic String getScopeType()
DependencyDependencygetScopeType in interface Dependencypublic List<Coordinate> getExcludedCoordinates()
DependencyCoordinate instances that are excluded from this Dependency child hierarchy.getExcludedCoordinates in interface Dependencypublic 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.Dependencypublic String toString()
toString in class org.apache.maven.model.Dependencypublic static List<Dependency> fromAetherList(List<org.eclipse.aether.graph.Dependency> dependencies)
Copyright © 2015 JBoss by Red Hat. All rights reserved.