diff --git a/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java b/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java index 55e87cdeec..1be812f80b 100644 --- a/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java +++ b/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java @@ -20,16 +20,14 @@ package org.apache.maven.execution; */ import java.util.Collections; +import java.util.IdentityHashMap; import java.util.List; import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArrayList; import org.apache.maven.project.DependencyResolutionResult; import org.apache.maven.project.MavenProject; -import com.google.common.collect.Maps; - /** @author Jason van Zyl */ public class DefaultMavenExecutionResult implements MavenExecutionResult @@ -42,7 +40,7 @@ public class DefaultMavenExecutionResult private List exceptions = new CopyOnWriteArrayList(); - private Map buildSummaries = Maps.newConcurrentMap(); + private Map buildSummaries = Collections.synchronizedMap(new IdentityHashMap()); public MavenExecutionResult setProject( MavenProject project ) { @@ -107,7 +105,7 @@ public class DefaultMavenExecutionResult { if ( buildSummaries == null ) { - buildSummaries = new ConcurrentHashMap(); + buildSummaries = Collections.synchronizedMap(new IdentityHashMap()); } buildSummaries.put( summary.getProject(), summary ); }