Я считаю полезным дать сборкам Eclipse отдельный каталог от сборок CLI Maven:
Вставьте следующее в ваш pom.xml.Наличие свойства «m2e.version» активирует следующий профиль, который изменяет местоположение сборки Eclipse
<profiles>
<profile>
<id>IDE</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<build>
<!-- Put the IDE's build output in a folder other than target, so that IDE builds don't interact with Maven builds -->
<directory>target-ide</directory>
</build>
</profile>