|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.model.Dependency
public class Dependency
Class Dependency.
Field Summary | |
---|---|
private java.lang.String |
artifactId
The unique id for an artifact produced by the project group, e.g. |
private java.lang.String |
classifier
The classifier of the dependency. |
private java.util.List<Exclusion> |
exclusions
Field exclusions. |
private java.lang.String |
groupId
The project group that produced the dependency, e.g. |
private boolean |
optional
Indicates the dependency is optional for use of this library. |
private java.lang.String |
scope
The scope of the dependency - compile , runtime ,
test ,
system , and provided . |
private java.lang.String |
systemPath
FOR SYSTEM SCOPE ONLY. |
private java.lang.String |
type
The type of dependency. |
private java.lang.String |
version
The version of the dependency, e.g. |
Constructor Summary | |
---|---|
Dependency()
|
Method Summary | |
---|---|
void |
addExclusion(Exclusion exclusion)
Method addExclusion. |
java.lang.String |
getArtifactId()
Get the unique id for an artifact produced by the project group, e.g. |
java.lang.String |
getClassifier()
Get the classifier of the dependency. |
java.util.List<Exclusion> |
getExclusions()
Method getExclusions. |
java.lang.String |
getGroupId()
Get the project group that produced the dependency, e.g. |
java.lang.String |
getManagementKey()
|
java.lang.String |
getScope()
Get the scope of the dependency - compile ,
runtime , test ,
system , and provided . |
java.lang.String |
getSystemPath()
Get fOR SYSTEM SCOPE ONLY. |
java.lang.String |
getType()
Get the type of dependency. |
java.lang.String |
getVersion()
Get the version of the dependency, e.g. |
boolean |
isOptional()
Get indicates the dependency is optional for use of this library. |
void |
removeExclusion(Exclusion exclusion)
Method removeExclusion. |
void |
setArtifactId(java.lang.String artifactId)
Set the unique id for an artifact produced by the project group, e.g. |
void |
setClassifier(java.lang.String classifier)
Set the classifier of the dependency. |
void |
setExclusions(java.util.List<Exclusion> exclusions)
Set lists a set of artifacts that should be excluded from this dependency's artifact list when it comes to calculating transitive dependencies. |
void |
setGroupId(java.lang.String groupId)
Set the project group that produced the dependency, e.g. |
void |
setOptional(boolean optional)
Set indicates the dependency is optional for use of this library. |
void |
setScope(java.lang.String scope)
Set the scope of the dependency - compile ,
runtime , test ,
system , and provided . |
void |
setSystemPath(java.lang.String systemPath)
Set fOR SYSTEM SCOPE ONLY. |
void |
setType(java.lang.String type)
Set the type of dependency. |
void |
setVersion(java.lang.String version)
Set the version of the dependency, e.g. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String groupId
org.apache.maven
.
private java.lang.String artifactId
maven-artifact
.
private java.lang.String version
3.2.1
. In Maven 2, this can also be
specified as a range of versions.
private java.lang.String type
jar
. While it usually represents the extension
on
the filename of the dependency, that is not
always the case. A type can be mapped to a different
extension and a classifier.
The type often correspongs to the packaging
used, though this is also not always the case.
Some examples are jar
,
war
, ejb-client
and
test-jar
.
New types can be defined by plugins that set
extensions
to true
, so
this is not a complete list.
private java.lang.String classifier
jdk14
and jdk15
.
private java.lang.String scope
compile
, runtime
,
test
,
system
, and provided
.
Used to
calculate the various classpaths used for
compilation, testing, and so on. It also assists in
determining
which artifacts to include in a distribution of
this project. For more information, see
the
dependency mechanism.
private java.lang.String systemPath
${java.home}
.
private java.util.List<Exclusion> exclusions
private boolean optional
Constructor Detail |
---|
public Dependency()
Method Detail |
---|
public void addExclusion(Exclusion exclusion)
exclusion
- public java.lang.String getArtifactId()
maven-artifact
.
public java.lang.String getClassifier()
jdk14
and jdk15
.
public java.util.List<Exclusion> getExclusions()
public java.lang.String getGroupId()
org.apache.maven
.
public java.lang.String getScope()
compile
,
runtime
, test
,
system
, and provided
.
Used to
calculate the various classpaths used for
compilation, testing, and so on. It also assists in
determining
which artifacts to include in a distribution of
this project. For more information, see
the
dependency mechanism.
public java.lang.String getSystemPath()
${java.home}
.
public java.lang.String getType()
jar
. While it usually represents the extension
on
the filename of the dependency, that is not
always the case. A type can be mapped to a different
extension and a classifier.
The type often correspongs to the packaging
used, though this is also not always the case.
Some examples are jar
,
war
, ejb-client
and
test-jar
.
New types can be defined by plugins that set
extensions
to true
, so
this is not a complete list.
public java.lang.String getVersion()
3.2.1
.
In Maven 2, this can also be
specified as a range of versions.
public boolean isOptional()
public void removeExclusion(Exclusion exclusion)
exclusion
- public void setArtifactId(java.lang.String artifactId)
maven-artifact
.
artifactId
- public void setClassifier(java.lang.String classifier)
jdk14
and jdk15
.
classifier
- public void setExclusions(java.util.List<Exclusion> exclusions)
exclusions
- public void setGroupId(java.lang.String groupId)
org.apache.maven
.
groupId
- public void setOptional(boolean optional)
optional
- public void setScope(java.lang.String scope)
compile
,
runtime
, test
,
system
, and provided
.
Used to
calculate the various classpaths used for
compilation, testing, and so on. It also assists in
determining
which artifacts to include in a distribution of
this project. For more information, see
the
dependency mechanism.
scope
- public void setSystemPath(java.lang.String systemPath)
${java.home}
.
systemPath
- public void setType(java.lang.String type)
jar
. While it usually represents the extension
on
the filename of the dependency, that is not
always the case. A type can be mapped to a different
extension and a classifier.
The type often correspongs to the packaging
used, though this is also not always the case.
Some examples are jar
,
war
, ejb-client
and
test-jar
.
New types can be defined by plugins that set
extensions
to true
, so
this is not a complete list.
type
- public void setVersion(java.lang.String version)
3.2.1
.
In Maven 2, this can also be
specified as a range of versions.
version
- public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getManagementKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |