idea2017用maven启动内置时jetty报错

今天用idea的maven命令启动jetty插件时报错

[WARNING] 错误的路径元素 "E:\.xkeshi\repository\com\sun\xml\bind\jaxb-impl\2.2.11\jaxb-core.jar": 没有这种文件或目录
D:\xkeshisrc\wemall\wemall-openapi\src\main\java\com\xkeshi\wemall\controller\h5\PaymentController.java:[53,33] [deprecation] com.xkeshi.wemall.dtos.pay中的WxAppPayDto已过时
[WARNING] D:\xkeshisrc\wemall\wemall-openapi\src\main\java\com\xkeshi\wemall\response\h5\OrderPayResponse.java:[5,33] [deprecation] com.xkeshi.wemall.dtos.pay中的WxAppPayDto已过时
[WARNING] 警告: 没有处理程序要使用以下任何注释: org.springframework.web.bind.annotation.PathVariable,org.springframework.validation.annotation.Validated,org.springframework.web.bind.annotation.RequestParam,javax.annotation.Resource,com.alibaba.fastjson.annotation.JSONField,org.springframework.web.bind.annotation.RequestMapping,org.springframework.beans.factory.annotation.Autowired,com.xkeshi.webkits.annotations.Login,org.springframework.stereotype.Controller,org.springframework.web.bind.annotation.ResponseBody,javax.validation.constraints.NotNull,javax.validation.Valid,org.springframework.web.bind.annotation.RequestBody,org.springframework.beans.factory.annotation.Value,org.springframework.stereotype.Component,com.xkeshi.webkits.annotations.Authentication,com.xkeshi.webkits.annotations.Logout
D:\xkeshisrc\wemall\wemall-openapi\src\main\java\com\xkeshi\wemall\controller\h5\PaymentController.java:[53,33] [deprecation] com.xkeshi.wemall.dtos.pay中的WxAppPayDto已过时
[WARNING] D:\xkeshisrc\wemall\wemall-openapi\src\main\java\com\xkeshi\wemall\response\h5\OrderPayResponse.java:[5,33] [deprecation] com.xkeshi.wemall.dtos.pay中的WxAppPayDto已过时
[WARNING] D:\xkeshisrc\wemall\wemall-openapi\src\main\java\com\xkeshi\wemall\controller\h5\PaymentController.java:[53,33] [deprecation] com.xkeshi.wemall.dtos.pay中的WxAppPayDto已过时
[WARNING] D:\xkeshisrc\wemall\wemall-openapi\src\main\java\com\xkeshi\wemall\response\h5\OrderPayResponse.java:[5,33] [deprecation] com.xkeshi.wemall.dtos.pay中的WxAppPayDto已过时

刚开始以为是maven冲突导致的,打开pom文件依赖关系图把 jaxb-core.jar  exclude掉后继续报

错误的路径元素 "E:\.xkeshi\repository\com\sun\xml\bind\jaxb-impl\2.2.11\jaxb-api.jar": 没有这种文件或目录

把本地的maven库删掉重新下载一份还是会出现这个问题,重装一遍idea(成本略高各种配置)还是不行,最后发现原来是maven的编译jdk是idea的默认jdk要改成自己配置的jdk才行,汗【dog脸】踩了接近两天的坑






编译器选择eclipse编译版本选1.8

最后rebulid  moudle下再重启jetty


如果出现dubbo服务接口不存在,就到本地的maven库里去删除对应的moudle项目生成的jar包再reimport所有的moudle



idea的版本建议用2016,2017的破解麻烦,免费版的有些功能受限用起来不顺手


遇到maven导入的jar包编译报错找不到改该jar包但是maven Dependencies下有该jar包,检查好pom文件排除maven依赖冲突的坑以后,可以尝试把下载到本地的jar包删除掉,重新下载


maven的内置jetty插件非常坑爹,最后还是用了tomcat来代替jetty

猜你喜欢

转载自blog.csdn.net/jishuisanqianli/article/details/76152983
今日推荐