mvn compiler:compile时出现非法字符: /65279错误

本文介绍了如何解决因UltraEdit、EditPlus等编辑器在UTF8文件中添加BOM标识而导致的Maven编译问题。具体解决方法为使用这些编辑器将文件从UTF8+BOM格式转换为标准的UTF8格式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

原因:

 

UltraEdit、EditPlus等编辑器会在utf8编码格式的文件开头添加utf8标识,使文件的编码格式由utf8变为utf8+BOM,导致maven编译时将utf8标识误认为非法字符。

 

解决办法:

 

通过UltraEdit、EditPlus等编辑器将utf8+BOM编码格式的文件改为utf8格式,去掉文件开头的utf8标识即可。

 

出处:http://blog.youkuaiyun.com/symgdwyh/article/details/4283378

JAR export finished with warnings. See details for additional information. Exported with compile warnings: KuCun2/src/main/java/com/kucun/DemoApplication.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/Config/CustomUserDetailsService.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/Config/Role/RoleConverter.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/Config/user/CustomUserDetails.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/Service/AppService.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/Service/DingdanService.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/Service/DynamicRepositoryService.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/controller/DingdanController.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/controller/UserController.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/controller/AppController.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/controller/ErrorConroller.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/data/entity/Mupi.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/data/entity/Chanpin_zujian.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/data/entity/Dingdan.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/data/entity/Dingdan_chanpin.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/data/entity/Kucun.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/data/entity/User.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/data/entity/Chanpin.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/data/entity/Caizhi.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/data/entity/Zujian.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/data/entity/Bancai.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/data/entity/DTO/EntityBasisSerializer.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/dataDo/DingdanRepository.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/dataDo/UserRepository.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/dataDo/CaizhiRepository.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/dataDo/DingdanChanpinRepository.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/dataDo/KucunRepository.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/dataDo/MupiRepository.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/dataDo/ZujianRepository.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/dataDo/DingdanChanpinZujianRepository.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/dataDo/ChanpinZujianRepository.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/dataDo/JinhuoRepository.java Exported with compile warnings: KuCun2/src/main/java/com/kucun/dataDo/BancaiRepository.java
最新发布
06-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值