SLING-12803 - Update the Scripting HTL Java Compile to the latest pom version
* updated spotbugs
diff --git a/pom.xml b/pom.xml
index ba47b99..6d04d36 100644
--- a/pom.xml
+++ b/pom.xml
@@ -133,10 +133,11 @@
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
- <version>3.1.12.2</version>
+ <version>4.8.6.6</version>
<configuration>
<effort>Max</effort>
<xmlOutput>true</xmlOutput>
+ <excludeFilterFile>src/test/resources/findbugs-exclude.xml</excludeFilterFile>
</configuration>
<executions>
<execution>
diff --git a/src/test/resources/findbugs-exclude.xml b/src/test/resources/findbugs-exclude.xml
new file mode 100644
index 0000000..92f0b81
--- /dev/null
+++ b/src/test/resources/findbugs-exclude.xml
@@ -0,0 +1,24 @@
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+<FindBugsFilter>
+ <Match>
+ <Package name="~org\.apache\.sling\.scripting\.sightly\.java\.compiler.*"/>
+ <Bug pattern="CT_CONSTRUCTOR_THROW,EI_EXPOSE,EI_EXPOSE_REP2,EI_EXPOSE_REP"/>
+ </Match>
+</FindBugsFilter>