I'm trying to use the Qulice code quality control tool.
In my pom.xml
I have the following definition:
<build>
<plugins>
<plugin>
<groupId>com.qulice</groupId>
<artifactId>qulice-maven-plugin</artifactId>
<version>0.12.1</version>
<configuration>
<license>file:${basedir}/LICENSE.txt</license>
<exclude>duplicatefinder:com.github.kodapan</exclude>
<exclude>dependencies:com.github.kodapan</exclude>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
When I run qulice:check
, the build fails because of these problems:
[WARNING] Found duplicate (but equal) classes in [com.github.kodapan:osm-common.core:v0.0.2,se.kodapan.osm.common:core:0.0.2-SNAPSHOT] :
[WARNING] se.kodapan.lang.Intern
[WARNING] se.kodapan.osm.domain.OsmObjectVisitor
[WARNING] se.kodapan.osm.domain.root.AbstractRoot
[WARNING] se.kodapan.osm.domain.root.Root
How can I modify the exclude
definition above in order for the build to succeed despite these problems (right now, fixing the classpath is out of question)?
The plugins section in a POM allows to manage the dependencies (for that plugin), especially exclusions.
So the configuration looks something like that:
Here you have to configure which transitive dependencies of what direct dependencies should be excluded.