Prepare for 2.0.1 RC2:
- Updated findbugs spec to exclude generated sources
git-svn-id: https://svn-us.apache.org/repos/asf/commons/proper/jexl/trunk@929437 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 5f68587..8f60317 100644
--- a/pom.xml
+++ b/pom.xml
@@ -117,7 +117,7 @@
<commons.componentid>jexl</commons.componentid>
<commons.release.version>2.0.1</commons.release.version>
<!-- The RC version used in the staging repository URL. -->
- <commons.rc.version>RC1</commons.rc.version>
+ <commons.rc.version>RC2</commons.rc.version>
<commons.release.2.version>1.1</commons.release.2.version>
<commons.release.2.binary.suffix />
<commons.jira.id>JEXL</commons.jira.id>
@@ -257,10 +257,7 @@
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.1</version>
<configuration>
- <excludes>
- <exclude>org/apache/commons/jexl2/parser/*.class</exclude>
- <exclude>org/apache/commons/jexl2/**/*Test.class</exclude>
- </excludes>
+ <excludeFilterFile>${basedir}/src/main/config/findbugs-exclude-filter.xml</excludeFilterFile>
<xmlOutput>true</xmlOutput>
<!-- Optional directory to put findbugs xdoc xml report -->
<xmlOutputDirectory>target/site</xmlOutputDirectory>
@@ -273,8 +270,7 @@
<configuration>
<targetJdk>1.5</targetJdk>
<excludes>
- <exclude>org/apache/commons/jexl2/parser/*.class</exclude>
- <exclude>org/apache/commons/jexl2/**/*Test.class</exclude>
+ <excludes>**/generated-sources/**/*</excludes>
</excludes>
<rulesets>
<ruleset>/rulesets/braces.xml</ruleset>
@@ -327,6 +323,17 @@
</site>
</distributionManagement>
</profile>
+ <profile>
+ <id>henrib</id>
+ <distributionManagement>
+ <!-- RC site deployment profile -->
+ <site>
+ <id>apache.website</id>
+ <name>Apache Commons Release Candidate Staging Site</name>
+ <url>${commons.deployment.protocol}://people.apache.org/home/henrib/public_html/${commons.componentid}-${commons.release.version}-${commons.rc.version}/site</url>
+ </site>
+ </distributionManagement>
+ </profile>
</profiles>
</project>
\ No newline at end of file
diff --git a/src/main/config/findbugs-exclude-filter.xml b/src/main/config/findbugs-exclude-filter.xml
new file mode 100644
index 0000000..ca14658
--- /dev/null
+++ b/src/main/config/findbugs-exclude-filter.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<!--
+ 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.
+-->
+
+<!--
+ This file removes JavaCC generated classes from being analyzed by findbugs.
+ Having no way to influence their generation, instructing findbugs to ignore them reduces clutter.
+-->
+<FindBugsFilter>
+ <Match>
+ <Class name="org.apache.commons.jexl2.parser.ParseException"/>
+ </Match>
+ <Match>
+ <Class name="org.apache.commons.jexl2.parser.Parser"/>
+ </Match>
+ <Match>
+ <Class name="org.apache.commons.jexl2.parser.ParserConstants"/>
+ </Match>
+ <Match>
+ <Class name="org.apache.commons.jexl2.parser.ParserTokenManager"/>
+ </Match>
+ <Match>
+ <Class name="org.apache.commons.jexl2.parser.ParserTreeConstants"/>
+ </Match>
+ <Match>
+ <Class name="org.apache.commons.jexl2.parser.TokenMgrError"/>
+ </Match>
+</FindBugsFilter>