在我的項目中,我使用Maven 3.0.4並使用JasperReports 5.1.0。要編譯JRXML文件,請使用jasperreports-maven-plugins。我有jasperreports-maven-plugin版本1.0-beta-2。既然是beta版本(1.0-beta-2)我可以知道,什麼是穩定版本jasperreports-maven-plugin可供使用?什麼是jasperreports-maven-plugin的穩定版本?
下面我pom.xml文件
<properties>
<jasperreports.version>5.1.0</jasperreports.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jasperreports-maven-plugin</artifactId>
<version>1.0-beta-2</version>
<configuration>
<sourceDirectory>src/main/resources/reports</sourceDirectory>
<outputDirectory>${project.build.directory}/classes/reports</outputDirectory>
</configuration>
<executions>
<execution>
<!-- Need to bind to the compile phase cuz the reports uses classes under target/classes. The default is the generate-resources phase. -->
<phase>compile</phase>
<goals>
<goal>compile-reports</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>${jasperreports.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.0.1</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
對我來說,[1.0-beta-3-SNAPSHOT](http://svn.codehaus.org/mojo/trunk/mojo/jasperreports-maven-plugin/pom.xml)是最後一個。它是從主幹 –
但你可以得到源代碼:) –
並且標籤是[here](http://svn.codehaus.org/mojo/tags/) –