[
https://jira.codehaus.org/browse/MOJO-1818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=294512#comment-294512
]
De Moor Yves commented on MOJO-1818:
------------------------------------
https://fisheye.codehaus.org/browse/mojo/trunk/mojo/jasperreports-maven-plugin/src/main/java/org/codehaus/mojo/jasperreports/JasperReportsMojo.java?r2=16122&r1=8082
Those lines were removed which causes the regression :
204 getLog().debug( "Set classloader" );
205 ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
206 Thread.currentThread().setContextClassLoader( getClassLoader( classLoader )
);
267 if ( classLoader != null )
268 {
269 Thread.currentThread().setContextClassLoader( classLoader );
270 }
> Regression : this fix generates ClassNotFoundException if the jrxml files
> refereces classes under target/classes
> ----------------------------------------------------------------------------------------------------------------
>
> Key: MOJO-1818
> URL: https://jira.codehaus.org/browse/MOJO-1818
> Project: Mojo
> Issue Type: Sub-task
> Components: jasperreports
> Environment: plugin version : 1.0-beta-3-SNAPSHOT
> Windows XP
> Java 1.6
> Reporter: De Moor Yves
>
> As explained in the documentation here :
> http://mojo.codehaus.org/jasperreports-maven-plugin/usage.html
> [...] By default, the compile-reports mojo runs at generate-resources phase.
> However, you might need to bind the mojo to the compile phase if your report
> uses classes under target/classes.
> In my module, I have some classes that are compiled under target/classes
> which are referenced from my jrxml file. So I have ser the execution phase
> to compile :
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>jasperreports-maven-plugin</artifactId>
> <version>1.0-beta-3-SNAPSHOT</version>
> <configuration>
>
> <sourceDirectory>${basedir}/src/main/resources/jasperreports</sourceDirectory>
>
> <outputDirectory>${project.build.directory}/generated/classes/jasperreports</outputDirectory>
> <source>${jdk.version}</source>
> <target>${jdk.version}</target><!-- JVM version -->
> <debug>true</debug>
> </configuration>
> <executions>
> <execution>
> <phase>process-classes</phase>
> <goals>
> <goal>compile-reports</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <!--note this must be repeated here to pick up correct
> xml validation -->
> <dependency>
> <groupId>net.sf.jasperreports</groupId>
> <artifactId>jasperreports</artifactId>
> <version>${jasperreports.version}</version>
> </dependency>
> </dependencies>
> </plugin>
> This was working right with plugin 1.0-beta2
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email