Faild to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)

maven构建异常问题

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project myhibernate3
[ERROR] /E:/myWorkplace/SSH1/src/main/java/com/iflytek/util/Page.java:[1,1] 非法字符: '\ufeff'
[ERROR] /E:/myWorkplace/SSH1/src/main/java/com/iflytek/util/Page.java:[1,10] 需要class, interfaceenum
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

首先检查jdk版本问题,没问题的话 再 右键点击 项目–>Properties–>查看libraries
这里写图片描述
再查看是否添加了maven依赖,Order and Export
这里写图片描述

勾上之后 右键点击项目 –>Build Project (至关重要的一步) 就可以解决问题了

这个问题只能怪自己手贱 把 eclipse 的 Project–>build Automatically给 关闭,勾选了 就不会出先这种问题……

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值