web-dev-qa-db-ja.com

jasperreports-maven-pluginの安定バージョンとは何ですか?

私のプロジェクトでは、Maven 3.0.4を使用し、JasperReports 5.1.を使用しています。 jasperreports-maven-pluginsを使用して、[〜#〜] jrxml [〜#〜]ファイルをコンパイルします。私はjasperreports-maven-pluginバージョン1.0-beta-2を持っています。ベータ版(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>
14
Anand Devaraj

公式のMavenプラグインは忘れてください。私は alexnederlofのJasper report mavenプラグイン を長い間使用していて、魅力のように機能します。

詳細については、githubをご覧ください。

Org.codehaus.mojoの元のjasperreports-maven-pluginは少し遅かった。このプラグインは10倍高速です。元のプラグインでは48秒、このプラグインでは4.7秒しかかからなかった52のレポートでテストしました。

そして彼の ブログ

元のプラグインはJava 4で作成され、シングルスレッドで動作し、リポジトリにコミットされたのは(執筆時点で)2009年8月31日でした。実際にはアクティブではありません。プロジェクトらしい。

19
jelies