JasperReports库需要定制的iText版本吗? [英] Custom-built iText version required by JasperReports library?
问题描述
我试图将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/ .
我的问题是:
-
jaspersoft iText定制构建的目的是什么?补丁?
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:
- 使用默认值交换patched.jar并运行(广泛的)测试
- 将patched.jar添加到您的存储库
- 将公共jasper报告存储库添加到您的存储库中( http://jasperreports.sourceforge.net/maven2)
- 和其他人指出的,请向jr伙计们提供更多详细信息,例如这将是一个开始: http://community.jaspersoft.com/jasperreports-library/issues/2594-0
- exchange the patched.jar with the default and run (extensive) tests
- add the patched.jar to your repository
- add the public jasper report repo to your repo (http://jasperreports.sourceforge.net/maven2)
- 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屋!