maven duplicate finder plugin介绍
maven-duplicate-finder-plugin是一个maven编译过程中检查是否有相同classpath.Classname的情况。
需要在settings.xml中的pluginGroups标签中加入pluginGroup,代码如下:
<build><pluginManagement><plugins><plugin><groupId>com.ning.maven.plugins</groupId><artifactId>maven-duplicate-finder-plugin</artifactId><version>1.0.5</version><configuration><failBuildInCaseOfConflict>true</failBuildInCaseOfConflict></configuration><executions><execution><phase>verify</phase><goals><goal>check</goal></goals></execution></executions></plugin></plugins></pluginManagement></build>