JasperReports库需要定制的iText版本吗? [英] Custom-built iText version required by JasperReports library?

查看:292
本文介绍了JasperReports库需要定制的iText版本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将jasper报告库(net.sf.jasperreports:jasperreports:5.2.0)作为我的项目的maven依赖项添加,不幸的是它的其中一个依赖项com.lowagie:itext:2.1.7.js2有点不典型,不能位于maven中央.但是,我发现它可以在 http://jasperreports.sourceforge.net上找到/maven2/com/lowagie/itext/.

I tried to add jasper reports library (net.sf.jasperreports:jasperreports:5.2.0) as a maven dependency to my project , unfortunately one of it's dependencies com.lowagie:itext:2.1.7.js2 is a little bit untypical and cannot be located in maven central. I've found, however, that it's available at http://jasperreports.sourceforge.net/maven2/com/lowagie/itext/ .

我的问题是:

  1. jaspersoft iText定制构建的目的是什么?补丁?

  1. What is the purpose of jaspersoft custom-build of iText? Patches?

使用在Maven中央存储库中找到的常规iText库2.1.7版本是否安全?

Is it safe to use regular iText library, version 2.1.7 found in maven central repo?

推荐答案

由于iText许可证已从MPL/LGPL Jasper Report更改,因此无法升级.因此,根据LGPL,他们提供了一个jar文件及其更改.

Since the iText license changed from MPL/LGPL Jasper Report couldn't upgrade. So according to the LGPL they supplied a jar file with their changes.

您可能会问是什么变化:

You may ask what changes are:

  • 他们添加了pom.xml(与您的情况无关)
  • 他们对ant.properties做了自己的版本编号的小改动(与您的情况无关)
  • 修补了PdfGraphics2D.java文件(修复了透明性错误)
  • they added a pom.xml (not relevant in your case)
  • they did a minor change to the ant.properties for their own version numbering (not relevant in your case)
  • patched the PdfGraphics2D.java file (fixed a transparency bug)

更改与currentFillGState行1089、1490、1616-1628有关.

The change is about the currentFillGState, Lines 1089, 1490, 1616-1628.

这对您意味着什么,很难说,但是您有以下可能性:

What this means for you is difficult to tell but you have the following possibilities:

  1. 使用默认值交换patched.jar并运行(广泛的)测试
  2. 将patched.jar添加到您的存储库
  3. 将公共jasper报告存储库添加到您的存储库中( http://jasperreports.sourceforge.net/maven2)
  4. 和其他人指出的,请向jr伙计们提供更多详细信息,例如这将是一个开始: http://community.jaspersoft.com/jasperreports-library/issues/2594-0
  1. exchange the patched.jar with the default and run (extensive) tests
  2. add the patched.jar to your repository
  3. add the public jasper report repo to your repo (http://jasperreports.sourceforge.net/maven2)
  4. and as others pointed out ask jr folks for further details, e.g. here would be a start: http://community.jaspersoft.com/jasperreports-library/issues/2594-0

这篇关于JasperReports库需要定制的iText版本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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