mirror of https://github.com/apache/maven.git
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:
parent
c8b4b7294c
commit
3c61f8a55b
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue