eclipse maven run as on server src/main

本文描述了一个Maven项目使用Eclipse插件进行部署时遇到的问题:classes目录下出现的是main目录的内容而非编译后的class文件。文章通过截图展示并探讨了如何通过修改Depolyment Assembly配置来解决该问题。

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

maven 项目,run as on server(eclipse plugin)时发现工程的classes下是main目录下的内容,不是编译的class。

右键项目,修改Depolyment Assemebly,如下图


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/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 Jar export finished with problems. See details for additional information. Could not find main method from given launch configuration.
最新发布
06-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值