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.