<description>Resources for opendaylight-karaf</description>
<packaging>jar</packaging>
<name>ODL :: odlparent :: ${project.artifactId}</name>
+ <properties>
+ <!-- There are a lot of duplicate classes in the dependencies below, but this is not a real issue,
+ because this is not a real Java artifact; it's just packaging. (TODO: Ideally, this artifact should
+ just have odlparent-lite not odlparent as parent, and not run Java static code analysis tools.)
+ -->
+ <duplicate-finder.skip>true</duplicate-finder.skip>
+ </properties>
<dependencies>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
<sonar.exclusions>**/gen/**,**/generated-sources/**,**/generated-test-sources/**,**/yang-gen/**,**/yang-gen-config/**,**/yang-gen-sal/**,**/yang-gen-code/**,**/pax/**</sonar.exclusions>
- <pmd.cpd.fail>false</pmd.cpd.fail>
+ <!-- Opt-in code quality checks -->
+ <pmd.cpd.fail>false</pmd.cpd.fail> <!-- Copy/paste detection -->
+ <duplicate-finder.skip>true</duplicate-finder.skip> <!-- Classpath duplicates -->
</properties>
<dependencyManagement>
<groupId>org.ops4j.pax.url</groupId>
<artifactId>pax-url-wrap</artifactId>
<version>2.5.3</version>
+ <exclusions>
+ <exclusion>
+ <!-- because pax-url-aether already includes a different version of classes in this artifact -->
+ <groupId>org.ops4j.pax.url</groupId>
+ <artifactId>pax-url-commons</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.basepom.maven</groupId>
+ <artifactId>duplicate-finder-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
+ <execution>
+ <id>find-duplicate-classpath-entries</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
+ <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
+ <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
+ <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
+ <printEqualFiles>false</printEqualFiles>
+ <quiet>true</quiet>
+ <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
+ as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
+ we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
+ also ignore: -->
+ <ignoredResourcePatterns>
+ <ignoredResourcePattern>org/opendaylight/blueprint/autowire.xml$</ignoredResourcePattern>
+ <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
+ <ignoredResourcePattern>README.*$</ignoredResourcePattern>
+ <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
+ <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
+ </ignoredResourcePatterns>
+ <ignoredDependencies>
+ <ignoredDependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-simple</artifactId>
+ </ignoredDependency>
+ <ignoredDependency>
+ <groupId>org.opendaylight.odlparent</groupId>
+ <artifactId>opendaylight-karaf-empty</artifactId>
+ </ignoredDependency>
+ </ignoredDependencies>
+ </configuration>
+ </plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
</plugin>