|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.project.Dependency
public class Dependency
null
Constructor Summary | |
---|---|
Dependency()
|
Method Summary | |
---|---|
void |
addProperty(java.lang.String key,
java.lang.String value)
Method addProperty |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getArtifact()
|
java.lang.String |
getArtifactDirectory()
|
java.lang.String |
getArtifactId()
Get The unique id for an artifact produced by the project group, e.g. |
java.lang.String |
getExtension()
|
java.lang.String |
getGroupId()
Get The project group that produced the dependency, e.g. |
java.lang.String |
getId()
Get Deprecated. |
java.lang.String |
getJar()
Get Literal name of the artifact in the repository. |
java.lang.String |
getKey()
|
java.lang.String |
getModelEncoding()
|
java.util.Properties |
getProperties()
Method getProperties |
java.lang.String |
getProperty(java.lang.String property)
|
java.lang.String |
getType()
Get The type of dependency. |
java.lang.String |
getTypeDirectory()
|
java.lang.String |
getUrl()
Get This url will be provided to the user if the jar file cannot be downloaded from the central repository. |
java.lang.String |
getVersion()
Get The version of the dependency, e.g. |
int |
hashCode()
|
boolean |
isAddedToClasspath()
|
boolean |
isPlugin()
|
void |
setArtifactId(java.lang.String artifactId)
Set The unique id for an artifact produced by the project group, e.g. |
void |
setGroupId(java.lang.String groupId)
Set The project group that produced the dependency, e.g. |
void |
setId(java.lang.String id)
Set Deprecated. |
void |
setJar(java.lang.String jar)
Set Literal name of the artifact in the repository. |
void |
setModelEncoding(java.lang.String modelEncoding)
|
void |
setProperties(java.util.Properties properties)
Set Properties about the dependency. |
void |
setType(java.lang.String type)
Set The type of dependency. |
void |
setUrl(java.lang.String url)
Set This url will be provided to the user if the jar file cannot be downloaded from the central repository. |
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, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Dependency()
Method Detail |
---|
public void addProperty(java.lang.String key, java.lang.String value)
key
- value
- public java.lang.String getArtifactId()
maven-artifact
.
public java.lang.String getGroupId()
org.apache.maven
.
public java.lang.String getId()
groupId
and
artifactId
together instead.
public java.lang.String getJar()
public java.util.Properties getProperties()
public java.lang.String getType()
jar
. While it usually represents the extension
on
the filename of the dependency, that is not
always the case.
Some examples are jar
,
war
, and plugin
.
A dependency of type plugin
is
loaded as a Maven plugin and not added to the project
build classpath.
public java.lang.String getUrl()
public java.lang.String getVersion()
3.2.1
. In Maven 2, this can also be
specified as a range of versions.
public void setArtifactId(java.lang.String artifactId)
maven-artifact
.
artifactId
- public void setGroupId(java.lang.String groupId)
org.apache.maven
.
groupId
- public void setId(java.lang.String id)
groupId
and
artifactId
together instead.
id
- public void setJar(java.lang.String jar)
jar
- public void setProperties(java.util.Properties properties)
war.bundle
property, and if found
will include the
dependency in WEB-INF/lib
.
properties
- 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.
Some examples are jar
,
war
, and plugin
.
A dependency of type plugin
is
loaded as a Maven plugin and not added to the project
build classpath.
type
- public void setUrl(java.lang.String url)
url
- 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 getKey()
public java.lang.String getArtifactDirectory()
public java.lang.String getArtifact()
public java.lang.String getTypeDirectory()
public java.lang.String getExtension()
public boolean isAddedToClasspath()
public boolean isPlugin()
public java.lang.String getProperty(java.lang.String property)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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 |