SEBSERV-2 #exclude generated classes for findbugs and pmd
This commit is contained in:
parent
b78f05445e
commit
9f284f3a10
2 changed files with 24 additions and 6 deletions
12
findbugs-excludes.xml
Normal file
12
findbugs-excludes.xml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<FindBugsFilter>
|
||||||
|
<!-- <Match> -->
|
||||||
|
<!-- <Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2"/> -->
|
||||||
|
<!-- </Match> -->
|
||||||
|
|
||||||
|
<!-- Exclude generated classes -->
|
||||||
|
<Match>
|
||||||
|
<Package name="ch.ethz.seb.sebserver.webservice.datalayer.batis.mapper"/>
|
||||||
|
<Package name="ch.ethz.seb.sebserver.webservice.datalayer.batis.model"/>
|
||||||
|
</Match>
|
||||||
|
</FindBugsFilter>
|
12
pom.xml
12
pom.xml
|
@ -22,8 +22,9 @@
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<!-- NOTE: There currently are two profiles, a default one to build on Java 11 (from eclipse and command-line)
|
<!-- NOTE: There currently are two profiles, a default one to build on
|
||||||
and one to build still on Java 8 to support the Jenkins build on CI-Server that still no Java 11 installed -->
|
Java 11 (from eclipse and command-line) and one to build still on Java 8
|
||||||
|
to support the Jenkins build on CI-Server that still no Java 11 installed -->
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
<id>Java 11</id>
|
<id>Java 11</id>
|
||||||
|
@ -48,7 +49,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.glassfish.jaxb</groupId>
|
<groupId>org.glassfish.jaxb</groupId>
|
||||||
<artifactId>jaxb-runtime</artifactId>
|
<artifactId>jaxb-runtime</artifactId>
|
||||||
<version>2.4.0-b180830.0438</version><!--$NO-MVN-MAN-VER$--> <!-- TODO move to stable version when available -->
|
<version>2.4.0-b180830.0438</version><!--$NO-MVN-MAN-VER$ --> <!-- TODO move to stable version when available -->
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</profile>
|
</profile>
|
||||||
|
@ -79,6 +80,10 @@
|
||||||
<failOnViolation>false</failOnViolation>
|
<failOnViolation>false</failOnViolation>
|
||||||
<targetJdk>${java.version}</targetJdk>
|
<targetJdk>${java.version}</targetJdk>
|
||||||
<linkXRef>false</linkXRef>
|
<linkXRef>false</linkXRef>
|
||||||
|
<excludes>
|
||||||
|
<exclude>.*/batis.mapper/*.*</exclude>
|
||||||
|
<exclude>.*/batis.model/*.*</exclude>
|
||||||
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
@ -98,6 +103,7 @@
|
||||||
<failOnError>false</failOnError>
|
<failOnError>false</failOnError>
|
||||||
<threshold>Low</threshold>
|
<threshold>Low</threshold>
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
|
<excludeFilterFile>findbugs-excludes.xml</excludeFilterFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
|
Loading…
Reference in a new issue