public class Dependency extends Object
This class is a simple entity object that represents a Maven dependency definition. It contains a groupId, artifactId and version.
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
artifactId |
(package private) String |
groupId |
(package private) static org.slf4j.Logger |
log |
(package private) String |
version |
(package private) ArrayList<String> |
versions |
| Constructor and Description |
|---|
Dependency(Dependency copy) |
Dependency(String groupId,
String artifactId,
String version) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVersion(String ver) |
void |
addVersions(Collection<String> vers) |
List<String> |
availableVersions() |
File |
download() |
boolean |
equals(Object obj) |
String |
getArtifactId() |
String |
getGroupId() |
File |
getLocalFile() |
String |
getPath() |
String |
getPomPath() |
String |
getVersion() |
int |
hashCode() |
String |
toString() |
static org.slf4j.Logger log
final String groupId
final String artifactId
String version
public Dependency(Dependency copy)
public File getLocalFile()
public String getPath()
public String getPomPath()
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public String getGroupId()
public String getArtifactId()
public String getVersion()
public void addVersion(String ver)
public void addVersions(Collection<String> vers)
Copyright © 2018. All rights reserved.