diff --git a/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java b/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java index f2df5638d3..ddcd919204 100644 --- a/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java +++ b/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java @@ -56,7 +56,9 @@ class DefaultProjectBuildingResult public DefaultProjectBuildingResult( MavenProject project, List problems, 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.project = project; this.problems = problems;