Moving field restored for backward compat out into a maven-project specific out into a compat aspect, like the one used in core itself for the plugin manager and lifecycle executor.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@604980 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2007-12-17 20:04:45 +00:00
parent cdf7254203
commit b7785ba822
2 changed files with 15 additions and 5 deletions

View File

@ -0,0 +1,15 @@
package org.apache.maven.project.aspect.compat;
import org.apache.maven.project.DefaultMavenProjectBuilder;
import java.util.HashMap;
import java.util.Map;
public privileged aspect Maven20xProjectCompatAspect
{
//DO NOT USE, it is here only for backward compatibility reasons. The existing
// maven-assembly-plugin (2.2-beta-1) is accessing it via reflection.
private Map DefaultMavenProjectBuilder.processedProjectCache = new HashMap();
}

View File

@ -162,11 +162,6 @@ public class DefaultMavenProjectBuilder
public static final String MAVEN_MODEL_VERSION = "4.0.0"; public static final String MAVEN_MODEL_VERSION = "4.0.0";
//DO NOT USE, it is here only for backward compatibility reasons. The existing
// maven-assembly-plugin (2.2-beta-1) is accessing it via reflection.
private Map processedProjectCache = new HashMap();
public void initialize() public void initialize()
{ {
modelReader = new MavenXpp3Reader(); modelReader = new MavenXpp3Reader();