mirror of https://github.com/apache/maven.git
o start a little caching component that does nothing special now but we need to build it out after the multiple instance problem is corrected, and we decide on the interactions between the metadata layer, project building, the reactor, and workspaces in IDEs.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@700758 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5fb228063a
commit
e8bf60f962
|
@ -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<String, MavenProject> projects = new HashMap<String, MavenProject>();
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue