HADOOP-16870. Use spotbugs-maven-plugin instead of findbugs-maven-plugin. Contributed by Ahmed Hussein.
Removed findbugs from the hadoop build images and added spotbugs instead. Upgraded SpotBugs to 4.2.2 and spotbugs-maven-plugin to 4.2.0.
This commit is contained in:
parent
7a3a749663
commit
f207d9e620
|
@ -109,7 +109,7 @@ Maven build goals:
|
||||||
* Compile : mvn compile [-Pnative]
|
* Compile : mvn compile [-Pnative]
|
||||||
* Run tests : mvn test [-Pnative]
|
* Run tests : mvn test [-Pnative]
|
||||||
* Create JAR : mvn package
|
* Create JAR : mvn package
|
||||||
* Run findbugs : mvn compile findbugs:findbugs
|
* Run spotbugs : mvn compile spotbugs:spotbugs
|
||||||
* Run checkstyle : mvn compile checkstyle:checkstyle
|
* Run checkstyle : mvn compile checkstyle:checkstyle
|
||||||
* Install JAR in M2 cache : mvn install
|
* Install JAR in M2 cache : mvn install
|
||||||
* Deploy JAR to Maven repo : mvn deploy
|
* Deploy JAR to Maven repo : mvn deploy
|
||||||
|
|
|
@ -121,11 +121,11 @@ pipeline {
|
||||||
YETUS_ARGS+=("--proclimit=5500")
|
YETUS_ARGS+=("--proclimit=5500")
|
||||||
YETUS_ARGS+=("--dockermemlimit=22g")
|
YETUS_ARGS+=("--dockermemlimit=22g")
|
||||||
|
|
||||||
# -1 findbugs issues that show up prior to the patch being applied
|
# -1 spotbugs issues that show up prior to the patch being applied
|
||||||
YETUS_ARGS+=("--findbugs-strict-precheck")
|
YETUS_ARGS+=("--spotbugs-strict-precheck")
|
||||||
|
|
||||||
# rsync these files back into the archive dir
|
# rsync these files back into the archive dir
|
||||||
YETUS_ARGS+=("--archive-list=checkstyle-errors.xml,findbugsXml.xml")
|
YETUS_ARGS+=("--archive-list=checkstyle-errors.xml,spotbugsXml.xml")
|
||||||
|
|
||||||
# URL for user-side presentation in reports and such to our artifacts
|
# URL for user-side presentation in reports and such to our artifacts
|
||||||
# (needs to match the archive bits below)
|
# (needs to match the archive bits below)
|
||||||
|
|
|
@ -482,7 +482,7 @@ function personality_file_tests
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${filename} =~ \.java$ ]]; then
|
if [[ ${filename} =~ \.java$ ]]; then
|
||||||
add_test findbugs
|
add_test spotbugs
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -550,7 +550,7 @@ function shadedclient_rebuild
|
||||||
echo_and_redirect "${logfile}" \
|
echo_and_redirect "${logfile}" \
|
||||||
"${MAVEN}" "${MAVEN_ARGS[@]}" verify -fae --batch-mode -am \
|
"${MAVEN}" "${MAVEN_ARGS[@]}" verify -fae --batch-mode -am \
|
||||||
"${modules[@]}" \
|
"${modules[@]}" \
|
||||||
-Dtest=NoUnitTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dfindbugs.skip=true
|
-Dtest=NoUnitTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true
|
||||||
|
|
||||||
count=$("${GREP}" -c '\[ERROR\]' "${logfile}")
|
count=$("${GREP}" -c '\[ERROR\]' "${logfile}")
|
||||||
if [[ ${count} -gt 0 ]]; then
|
if [[ ${count} -gt 0 ]]; then
|
||||||
|
|
|
@ -147,15 +147,15 @@ RUN apt-get -q update \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
######
|
#######
|
||||||
# Install findbugs 3.0.1 (3.0.1 ships with Xenial)
|
# Install SpotBugs 4.2.2
|
||||||
######
|
#######
|
||||||
# hadolint ignore=DL3008
|
RUN mkdir -p /opt/spotbugs \
|
||||||
RUN apt-get -q update \
|
&& curl -L -s -S https://github.com/spotbugs/spotbugs/releases/download/4.2.2/spotbugs-4.2.2.tgz \
|
||||||
&& apt-get -q install -y --no-install-recommends findbugs \
|
-o /opt/spotbugs.tgz \
|
||||||
&& apt-get clean \
|
&& tar xzf /opt/spotbugs.tgz --strip-components 1 -C /opt/spotbugs \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& chmod +x /opt/spotbugs/bin/*
|
||||||
ENV FINDBUGS_HOME /usr
|
ENV SPOTBUGS_HOME /opt/spotbugs
|
||||||
|
|
||||||
####
|
####
|
||||||
# Install shellcheck (0.4.6, the latest as of 2017-09-26)
|
# Install shellcheck (0.4.6, the latest as of 2017-09-26)
|
||||||
|
|
|
@ -223,8 +223,8 @@
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
|
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -287,8 +287,8 @@
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml
|
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml
|
||||||
</excludeFilterFile>
|
</excludeFilterFile>
|
||||||
|
|
|
@ -101,8 +101,8 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml
|
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml
|
||||||
</excludeFilterFile>
|
</excludeFilterFile>
|
||||||
|
|
|
@ -384,8 +384,8 @@
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
|
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -123,8 +123,8 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
|
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -158,10 +158,9 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
<excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
||||||
<effort>Max</effort>
|
<effort>Max</effort>
|
||||||
|
|
|
@ -135,10 +135,9 @@
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${mr.examples.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
<excludeFilterFile>${mr.examples.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
||||||
<effort>Max</effort>
|
<effort>Max</effort>
|
||||||
|
|
|
@ -179,10 +179,9 @@
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
<excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
||||||
<effort>Max</effort>
|
<effort>Max</effort>
|
||||||
|
@ -272,12 +271,10 @@
|
||||||
<reporting>
|
<reporting>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<!-- until we have reporting management cf. MSITE-443 -->
|
<!-- until we have reporting management cf. MSITE-443 -->
|
||||||
<version>2.3.2</version>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -89,11 +89,10 @@
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
|
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
|
||||||
<fork>true</fork>
|
|
||||||
<maxHeap>2048</maxHeap>
|
<maxHeap>2048</maxHeap>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -1377,11 +1377,6 @@
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
<version>${maven-war-plugin.version}</version>
|
<version>${maven-war-plugin.version}</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
|
||||||
<version>${findbugs.version}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>native-maven-plugin</artifactId>
|
<artifactId>native-maven-plugin</artifactId>
|
||||||
|
@ -1486,10 +1481,6 @@
|
||||||
</extension>
|
</extension>
|
||||||
</extensions>
|
</extensions>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-remote-resources-plugin</artifactId>
|
<artifactId>maven-remote-resources-plugin</artifactId>
|
||||||
|
|
|
@ -58,10 +58,9 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
|
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
|
||||||
</excludeFilterFile>
|
</excludeFilterFile>
|
||||||
|
|
|
@ -173,10 +173,9 @@
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>
|
<excludeFilterFile>
|
||||||
${basedir}/dev-support/findbugs-exclude.xml
|
${basedir}/dev-support/findbugs-exclude.xml
|
||||||
|
|
|
@ -324,10 +324,9 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
|
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
|
||||||
</excludeFilterFile>
|
</excludeFilterFile>
|
||||||
|
|
|
@ -50,10 +50,9 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
|
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
|
||||||
</excludeFilterFile>
|
</excludeFilterFile>
|
||||||
|
|
|
@ -109,10 +109,9 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
|
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
|
||||||
</excludeFilterFile>
|
</excludeFilterFile>
|
||||||
|
|
|
@ -114,10 +114,9 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
||||||
<effort>Max</effort>
|
<effort>Max</effort>
|
||||||
|
|
|
@ -66,10 +66,9 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
|
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
|
||||||
</excludeFilterFile>
|
</excludeFilterFile>
|
||||||
|
|
|
@ -99,10 +99,9 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
||||||
<effort>Max</effort>
|
<effort>Max</effort>
|
||||||
|
|
|
@ -113,10 +113,9 @@
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
||||||
<effort>Max</effort>
|
<effort>Max</effort>
|
||||||
|
|
|
@ -120,10 +120,9 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
<excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
||||||
<effort>Max</effort>
|
<effort>Max</effort>
|
||||||
|
|
|
@ -344,8 +344,8 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<includeTests>true</includeTests>
|
<includeTests>true</includeTests>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -40,10 +40,9 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
<excludeFilterFile>${yarn.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
<excludeFilterFile>${yarn.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
|
||||||
<effort>Max</effort>
|
<effort>Max</effort>
|
||||||
|
|
|
@ -201,12 +201,9 @@
|
||||||
<reporting>
|
<reporting>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
<!-- until we have reporting management cf. MSITE-443 -->
|
|
||||||
<version>2.3.2</version>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<findbugsXmlOutput>true</findbugsXmlOutput>
|
|
||||||
<xmlOutput>true</xmlOutput>
|
<xmlOutput>true</xmlOutput>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
27
pom.xml
27
pom.xml
|
@ -107,7 +107,8 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
|
||||||
<maven-checkstyle-plugin.version>2.15</maven-checkstyle-plugin.version>
|
<maven-checkstyle-plugin.version>2.15</maven-checkstyle-plugin.version>
|
||||||
<checkstyle.version>6.6</checkstyle.version>
|
<checkstyle.version>6.6</checkstyle.version>
|
||||||
<dependency-check-maven.version>1.3.6</dependency-check-maven.version>
|
<dependency-check-maven.version>1.3.6</dependency-check-maven.version>
|
||||||
|
<spotbugs.version>4.2.2</spotbugs.version>
|
||||||
|
<spotbugs-maven-plugin.version>4.2.0</spotbugs-maven-plugin.version>
|
||||||
<shell-executable>bash</shell-executable>
|
<shell-executable>bash</shell-executable>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
@ -224,6 +225,18 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
|
||||||
<artifactId>dependency-check-maven</artifactId>
|
<artifactId>dependency-check-maven</artifactId>
|
||||||
<version>${dependency-check-maven.version}</version>
|
<version>${dependency-check-maven.version}</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.github.spotbugs</groupId>
|
||||||
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
|
<version>${spotbugs-maven-plugin.version}</version>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.spotbugs</groupId>
|
||||||
|
<artifactId>spotbugs</artifactId>
|
||||||
|
<version>${spotbugs.version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
|
|
||||||
|
@ -306,6 +319,18 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
|
||||||
<artifactId>dependency-check-maven</artifactId>
|
<artifactId>dependency-check-maven</artifactId>
|
||||||
<version>${dependency-check-maven.version}</version>
|
<version>${dependency-check-maven.version}</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.github.spotbugs</groupId>
|
||||||
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||||
|
<version>${spotbugs-maven-plugin.version}</version>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.spotbugs</groupId>
|
||||||
|
<artifactId>spotbugs</artifactId>
|
||||||
|
<version>${spotbugs.version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue