diff --git a/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java b/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java index b37527b242..c48a33a5e0 100644 --- a/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java +++ b/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java @@ -147,6 +147,24 @@ public class DefaultMavenProjectBuilder return project; } + // I want to build this out as a component with history and statistics to help me track down the realm problems. jvz. + class ProjectCache + { + private Map projects = new HashMap(); + + public MavenProject get( String key ) + { + MavenProject p = projects.get( key ); + + return p; + } + + public MavenProject put( String key, MavenProject project ) + { + return projects.put( key, project ); + } + } + // This is used by the RR plugin public MavenProject buildFromRepository( Artifact artifact, List remoteArtifactRepositories, ArtifactRepository localRepository, boolean allowStubs ) throws ProjectBuildingException