
org.codehaus.mojo.versions.report.Dependency Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of versions-maven-plugin Show documentation
Show all versions of versions-maven-plugin Show documentation
Versions Plugin for Maven 2. The Versions Plugin updates the versions of components in the POM.
package org.codehaus.mojo.versions.report;
import java.util.HashMap;
import java.util.Map;
public class Dependency {
private String groupId;
private String artifactId;
private String version;
private String type;
private String scope;
private String projectId;
private Map inputLocationMap = new HashMap();
public String getArtifactId() {
return artifactId;
}
public void setArtifactId(String artifactId) {
this.artifactId = artifactId;
}
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
public String getScope() {
return scope;
}
public void setScope(String scope) {
this.scope = scope;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getProjectId() {
return projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public void addInputLocation(String key, org.apache.maven.model.InputLocation location) {
if (null != location) {
final InputLocation inputLocation = new InputLocation();
inputLocation.setLine(location.getLineNumber());
inputLocation.setColumn(location.getColumnNumber());
inputLocation.setInputSource(location.getSource());
inputLocationMap.put(key, inputLocation);
}
}
public Map getInputLocationMap() {
return inputLocationMap;
}
public void setInputLocationMap(Map inputLocationMap) {
this.inputLocationMap = inputLocationMap;
}
}