artifact.setExtension(getExtension(pRow));
return artifact;
}
public int findRow(final Artifact pArtifact) {
final Artifact artifact = pArtifact.getCompleteArtifact();
for (int row = 0; row < getRowCount(); row++) {
if (!artifact.getGroupId().equals(getGroupId(row)))
continue;
if (!artifact.getArtifactId().equals(getArtifactId(row)))
continue;
String type = getType(row);
if (type == null || type.trim().length() == 0) type = "jar";
if (!artifact.getType().equals(type))
continue;
String version = getVersion(row);
if (version == null || version.trim().length() == 0) version = "SNAPSHOT";
if (!artifact.getVersion().equalsIgnoreCase(version))
continue;
String extension = getExtension(row);
if (extension == null || extension.trim().length() == 0)
extension = type;
if (!artifact.getExtension().equalsIgnoreCase(extension))
continue;
return row;
}