Error: duplicate class in maven?

空扰寡人 提交于 2019-12-25 07:08:47

问题


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?


回答1:


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..



来源:https://stackoverflow.com/questions/36262344/error-duplicate-class-in-maven

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!