Ana*_*raj 13 jasper-reports maven
在我的项目中,我正在使用Maven 3.0.4并使用JasperReports 5.1.0.要 使用jasperreports-maven-plugins编译JRXML文件.我有版本1.0-beta-2 的jasperreports-maven-plugin.因为它是测试版(1.0-beta-2)我可以知道,什么是稳定版的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>
Run Code Online (Sandbox Code Playgroud)
jel*_*ies 20
忘掉官方的maven插件吧.我一直在使用alexnederlof的Jasper报告maven插件很长一段时间,就像一个魅力.
你可以在github上找到更多信息:
来自org.codehaus.mojo的原始jasperreports-maven-plugin有点慢.这个插件快了10倍.我测试了52个报告,使用原始插件花了48秒,使用这个插件只用了4.7秒.
在他的博客中:
原始插件是在Java 4中创建的,可以单线程工作,最后一次提交到repo的时间是(在撰写本文时)2009年8月31日.它似乎并不是一个活跃的项目.
| 归档时间: |
|
| 查看次数: |
13563 次 |
| 最近记录: |