Can I tell which version of Java to use when compiling .jrxml files with Jasper reports in Maven (using jasperreports-maven-plugin)? I saw this blog post claiming that Jasper uses the “default virtual machine on your computer” and not “the same version of maven-compiler-plugin”. If I cannot change or guarantee the JAVA_HOME environment variable, how can I get Jasper to compile with Java6 ?
Here is a snippet from my pom.xml:
<plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jasperreports-maven-plugin</artifactId> <version>1.0-beta-2</version> <configuration> <outputDirectory>${project.build.directory}/classes</outputDirectory> </configuration> <executions> <execution> <phase>compile</phase> <goals> <goal>compile-reports</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>5.0.1</version> </dependency> </dependencies> </plugin> <plugin> </plugins>
When looking at Codehaus Docs , you can use a parameter, but it does not say how to indicate which version of Java.
Thanks!
java maven jasper-reports
rsteier
source share