o Fixed format of project id

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@934867 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-04-16 13:37:25 +00:00
parent 419a1d4627
commit e3c7c2633d
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ class DefaultProjectBuildingResult
public DefaultProjectBuildingResult( MavenProject project, List<ModelProblem> problems, public DefaultProjectBuildingResult( MavenProject project, List<ModelProblem> problems,
ArtifactResolutionResult dependencyResolutionResult ) ArtifactResolutionResult dependencyResolutionResult )
{ {
this.projectId = ( project != null ) ? project.getId() : ""; this.projectId =
( project != null ) ? project.getGroupId() + ':' + project.getArtifactId() + ':' + project.getVersion()
: "";
this.pomFile = ( project != null ) ? project.getFile() : null; this.pomFile = ( project != null ) ? project.getFile() : null;
this.project = project; this.project = project;
this.problems = problems; this.problems = problems;