Use instance variable to access the project.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@648551 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/JavaClassDescriptorManager.java b/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/JavaClassDescriptorManager.java
index 845d862..e93455d 100644
--- a/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/JavaClassDescriptorManager.java
+++ b/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/JavaClassDescriptorManager.java
@@ -80,7 +80,7 @@
throws MojoFailureException, MojoExecutionException {
this.log = log;
this.project = project;
- this.classloader = this.getCompileClassLoader(project);
+ this.classloader = this.getCompileClassLoader();
// get all the class sources through qdox
this.log.debug("Setting up QDox");
@@ -241,9 +241,9 @@
return list;
}
- protected ClassLoader getCompileClassLoader(MavenProject project)
+ protected ClassLoader getCompileClassLoader()
throws MojoFailureException {
- List artifacts = project.getCompileArtifacts();
+ List artifacts = this.getProject().getCompileArtifacts();
URL[] path = new URL[artifacts.size() + 1];
int i = 0;
for (Iterator ai=artifacts.iterator(); ai.hasNext(); ) {