public interface MavenDependency extends MavenCoordinate
<dependency />
declaration; immutable and Thread-safe.Modifier and Type | Method and Description |
---|---|
String |
getArtifactId()
Returns the "artifactId" portion of this artifact's coordinates
|
Set<MavenDependencyExclusion> |
getExclusions()
Returns the exclusions defined for this
MavenDependency in an immutable, read-only view. |
String |
getGroupId()
Returns the "groupId" portion of this artifact's coordinates
|
ScopeType |
getScope()
Returns the scope for this
MavenDependency . |
boolean |
isOptional()
Returns whether or not this
MavenDependency has been marked as optional; defaults to
false |
equals, getClassifier, getPackaging, getType, getVersion, hashCode
toCanonicalForm
Set<MavenDependencyExclusion> getExclusions()
MavenDependency
in an immutable, read-only view. If no
exclusions are defined, an empty Set
will be returned.MavenDependency
in an immutable, read-only view.
An empty Set
if no exclusions are defined.ScopeType getScope()
MavenDependency
. Never returns null; if no scope has been
explicitly-defined, the default ScopeType.COMPILE
will be returned.MavenDependency
. The default ScopeType.COMPILE
if no scope has been
explicitly-defined. Never returns null.boolean isOptional()
MavenDependency
has been marked as optional; defaults to
false
MavenDependency
has been marked as optional. Defaults to false
String getGroupId()
String getArtifactId()
Copyright © 2016 JBoss by Red Hat. All rights reserved.