Compiling JasperReport using Maven


I am moving old project from ant to maven 2. One of the project has jasper reports. Previously the jasper reports were compiled separately using iReport and manually copied into the projects.


To automate the compilation using maven 2. We are using JDK 1.4. and the jasperreports version is 2.0.5.


Normally I just need to set the pom.xml config as follow

The above is working if your JAVA_HOME is set to JDK 1.4.

My case is different. So, I need to make sure the report is compiled using JDK 1.4.

If you are in the same situation, you need jasperreports-maven-plugin version 1.0-beta-3-SNAPSHOT and configure the plugin to use JDK 1.4. And yes, it’s not available in default repository. So, you need to add the codehaus repo.


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">