604980 doesn't seem to work when plugin accesses the field by reflection.

See:
Caused by: java.lang.NoSuchFieldException: processedProjectCache
        at java.lang.Class.getDeclaredField(Class.java:1854)
        at org.apache.maven.shared.repository.DefaultRepositoryAssembler.invalidateProccessedProjectCache(DefaultRepositoryAssembler.java:495)

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@613673 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Milos Kleint 2008-01-20 20:38:58 +00:00
parent c8b4b7294c
commit 3c61f8a55b
2 changed files with 10 additions and 1 deletions

View File

@ -10,6 +10,8 @@ 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();
// the aspect weaving seems not to work for reflection from plugin.
// private Map DefaultMavenProjectBuilder.processedProjectCache = new HashMap();
}

View File

@ -159,6 +159,13 @@ public class DefaultMavenProjectBuilder
private ProfileAdvisor profileAdvisor;
private MavenTools mavenTools;
//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.
// the aspect weaving seems not to work for reflection from plugin.
private Map processedProjectCache = new HashMap();
public static final String MAVEN_MODEL_VERSION = "4.0.0";