当前位置:网站首页>踩坑日记:Unable to process Jar entry [module-info.class]
踩坑日记:Unable to process Jar entry [module-info.class]
2022-04-23 06:27:00 【阿兵哥哥】
运行环境:
Java 版本:11.0.10操作系统:Window 10
maven 版本:3.8.1
tomcat7 插件版本:2.2
问题描述:
使用 manven
启动 tomcat7
插件后报错,错误如下:
严重: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/myRepository/javax/xml/bind/jaxb-api/2.3.0/jaxb-api-2.3.0.jar!/] for annotations
原因分析:
`jaxb-api` 版本过高导致,找到其所在,将其依赖排除即可。解决方案:
看网上很多博主的解决方式都是找到 jaxb-api
jar包,用解压软件打开【不是解压】,将其里面的 module-info.class
文件夹删除,我自己也试过,确实可以解决该问题,但是总感觉该方式有问题,不可能每下载一次都要删除一次吧。以下是我的解决方案,大家看需要随缘取之!
<!-- 腾讯云短信依赖 -->
<dependency>
<groupId>com.tencentcloudapi</groupId>
<artifactId>tencentcloud-sdk-java</artifactId>
<version>3.1.270</version>
<exclusions>
<!-- 排除关联依赖的引入 -->
<exclusion>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</exclusion>
</exclusions>
</dependency>
版权声明
本文为[阿兵哥哥]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Ayue1220/article/details/117384928
边栏推荐
猜你喜欢
随机推荐
ogldev-读书笔记
Judge whether the beginning and end of the string contain target parameters: startswith() and endswith() methods
C# SmoothProgressBar自定义进度条控件
面经总结2
Authorization server (simple construction of authorization server)
Solutions to common problems in visualization (VII) solutions to drawing scale setting
Custom time format (yyyy-mm-dd HH: mm: SS week x)
MySQL storage engine
5. Sql99 standard: internal connection and external connection
MySQL index
The page displays the current time in real time
js之预解析
SAP SALV14 后台输出SALV数据可直接保存文件,发送Email(带排序、超链接、筛选格式)
C#使用拉依达准则(3σ准则)剔除异常数据(.Net剔除一组数据中的奇异值)
【TED系列】如何与内心深处的批评家相处?
SAP PI/PO rfc2RESTful 發布rfc接口為RESTful示例(Proxy間接法)
页面实时显示当前时间
9.常用函数
2.限定查询
移动布局(flex布局、视口标签)