什么是jasperreports-maven-plugin的稳定版本? [英] What is stable version for jasperreports-maven-plugin?

查看:212
本文介绍了什么是jasperreports-maven-plugin的稳定版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我正在使用 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 的稳定版本可以使用?

In my project, I am using Maven 3.0.4 and using JasperReports 5.1.0. To compile the JRXML file, using the jasperreports-maven-plugins. I have the jasperreports-maven-plugin with version 1.0-beta-2. Since it was beta version (1.0-beta-2) Can i know, what is stable version of jasperreports-maven-plugin available to be use?

在我的pom.xml文件中使用的插件下面

Below the plugin used in my pom.xml file

<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>


推荐答案

忘记官方maven插件。我一直在使用 alexnederlof的Jasper报告maven插件很长一段时间,并且像一个魅力。

Forget about the official maven plugin. I've been using alexnederlof's Jasper report maven plugin for a long time and works like a charm.

你可以在github找到更多信息:

You can find more info at github:


原文来自org.codehaus.mojo的jasperreports-maven-plugin是
有点慢。这个插件快了10倍。我测试了52个报告,其中
使用原始插件需要48秒,而使用
这个插件仅需4.7秒。

The original jasperreports-maven-plugin from org.codehaus.mojo was a bit slow. This plugin is 10x faster. I tested it with 52 reports which took 48 seconds with the original plugin and only 4.7 seconds with this plugin.

并在他的博客


原始插件是用Java 4创建的,单线程工作,最后一次是
致于回购的是(在撰写本文时)2009年8月31日
。看起来并不是一个活跃的项目。

The original plug-in is created in Java 4, works single-threaded and the last time any committed to the repo was (at time of writing) 31st of August, 2009. Not really an active project it seems.

这篇关于什么是jasperreports-maven-plugin的稳定版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆