|
||||||||||
| 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
null
| 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 |
getExclusions()
Method getExclusions |
java.lang.String |
getGroupId()
Get The project group that produced the dependency, e.g. |
java.lang.String |
getManagementKey()
|
java.lang.String |
getModelEncoding()
|
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 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 |
setModelEncoding(java.lang.String modelEncoding)
|
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 |
| 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 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 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.Objectpublic java.lang.String getManagementKey()
public void setModelEncoding(java.lang.String modelEncoding)
public java.lang.String getModelEncoding()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||