Error: duplicate class in maven?
<p>I am working on a <code>maven project</code>. when I run <code>Maven-clean</code> command target folder get empty its fine. but when I am trying to run <code>Maven-install</code> command after some modification, its showing me a compile time error.</p>

<pre><code> error: duplicate class: com.d8corporation.mailservice.MailService_Service
</code></pre>

<p>I searched and got the following <a href="https://stackoverflow.com/questions/882295/maven-compilation-error-duplicate-classes">link</a>  </p>

<p>in second answer </p>

<pre><code> So removing them from version control again, could solve it?
</code></pre>

<p>I have not so much experience in maven so could some one please explain me what I remove for version control? </p>