错误:在maven中重复类? [英] Error: duplicate class in maven?
问题描述
我正在处理 maven项目
。当我运行 Maven-clean
命令目标文件夹时,它变得很空。但是当我试图在修改后运行 Maven-install
命令时,它显示出编译时错误。
error:duplicate class:com.d8corporation.mailservice.MailService_Service
我搜索并获得了以下链接
第二个答案
所以再次从版本控制中删除它们,可以解决它吗?
我没有太多的maven经验,所以有人可以解释我为版本控制?
我解决了同样的问题
lockquote
清理maven项目:-mvn clean
从src中删除com文件夹然后编译
复制com从生成的to src-> main - > java
再次编译
这个帮助..
I am working on a maven project
. when I run Maven-clean
command target folder get empty its fine. but when I am trying to run Maven-install
command after some modification, its showing me a compile time error.
error: duplicate class: com.d8corporation.mailservice.MailService_Service
I searched and got the following link
in second answer
So removing them from version control again, could solve it?
I have not so much experience in maven so could some one please explain me what I remove for version control?
I resolve the same issue
cleaning maven project :-mvn clean
delete com folder from src then compile
copy com from generated to src->main-->java
again compile
Hope this Help..
这篇关于错误:在maven中重复类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!