解决Maven报错“Cannot resolve com.lowagie:itext:2.1.7.js7”
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                解决Maven报错“Cannot resolve com.lowagie:itext:2.1.7.js7”
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                Maven下載2.1.7.js7版本的itext依賴時報錯:“Cannot resolve com.lowagie:itext:2.1.7.js7”
問題原因:
由于在jasperreports的pom文件里指定了2.1.7.js7版本的itext依賴,而目前的Maven中央倉庫或其他鏡像倉庫里是不存在這種帶有js7等后綴版本。
目前itext已停止維護,并從4.2.2之后的版本開始從com.lowagie.itext遷移到com.itextpdf.itextpdf,有需要的話可以使用更高版本的itextpdf依賴。
解決方案:
排除jasperreports中的itext依賴并自行指定版本。
<dependency><groupId>jasperreports</groupId><artifactId>jasperreports</artifactId><version>6.10.0</version> <!--(or higher)--><exclusions><exclusion><groupId>com.lowagie</groupId><artifactId>itext</artifactId></exclusion></exclusions> </dependency> <dependency><groupId>com.itextpdf</groupId><artifactId>itextpdf</artifactId><version>5.5.13</version> <!--(or higher)--> </dependency>總結
以上是生活随笔為你收集整理的解决Maven报错“Cannot resolve com.lowagie:itext:2.1.7.js7”的全部內容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: python多线程编程(4): 死锁和可
 - 下一篇: [笔记]提升R的性能和突破内存限制的技巧