Failed to read artifact descriptor for com.lowagie:itext:jar:2.1.7.js6
導(dǎo)入JasperReports坐標(biāo),依賴報(bào)錯(cuò)問(wèn)題解決
? ? ? ? 在maven項(xiàng)目中導(dǎo)入JasperReports報(bào)表生成工具坐標(biāo)時(shí),出現(xiàn)mavn依賴包紅色波浪線問(wèn)題。
? ? ? ? 錯(cuò)誤提示:Failed to read artifact descriptor for com.lowagie:itext:jar:2.1.7.js6
? ? ? ? 讀取com.lowagie:itext:jar:2.1.7.js6的工件描述符失敗。
?
問(wèn)題原因分析
? ? ? ? JasperReports報(bào)表生成工具是對(duì)Itext進(jìn)行了封裝,簡(jiǎn)化了pdf輸出的過(guò)程。這里說(shuō)的是讀取com.lowagie:itext失敗,解決方法很簡(jiǎn)單,在導(dǎo)入JasperReports坐標(biāo)時(shí)排除對(duì)com.lowagie:itext:jar的讀取即可
?
解決辦法
1.導(dǎo)入JasperReports坐標(biāo)時(shí)排除com.lowagie:itext:jar:的讀取。附上一下坐標(biāo)
<dependency><!--jasperreports報(bào)表生成工具--><groupId>net.sf.jasperreports</groupId><artifactId>jasperreports</artifactId><version>6.8.0</version><!--排除itext,jar讀取--><exclusions><exclusion><groupId>com.lowagie</groupId><artifactId>itext</artifactId></exclusion></exclusions></dependency>2.重啟動(dòng)idea,問(wèn)題解決
?
總結(jié)
以上是生活随笔為你收集整理的Failed to read artifact descriptor for com.lowagie:itext:jar:2.1.7.js6的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 第一次玩,试试手(标题)
- 下一篇: [置顶]tcpflow 抓包