/**
* Returns the Artifact corresponding to the project.
*/
public Artifact toArtifact(Path path)
{
ArtifactDependency parent = null;
if (_parent != null) {
ArtifactVersion parentVersion = _parent.getVersion();
ArtifactVersionRange parentRange
= new ArtifactVersionRange(parentVersion, true,
parentVersion, true);
parent = new ArtifactDependency(_parent.getGroupId(),
null,
_parent.getArtifactId(),
parentRange);
}