De Moor Yves created MOJO-1818:
----------------------------------
Summary: 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