Skip to content

Commit 8b67f9e

Browse files
authored
Merge pull request #553 from hazendaz/spotbugs
[tests] Add integration test to check file open issues per #517
2 parents 03a2658 + b4ea4a7 commit 8b67f9e

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
invoker.goals = clean verify package clean
2+
3+
# The expected result of the build, possible values are "success" (default) and "failure"
4+
invoker.buildResult = success

src/it/verify-clean/pom.xml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright (C) 2006-2020 the original author or authors.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
https://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
18+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
20+
<modelVersion>4.0.0</modelVersion>
21+
<parent>
22+
<groupId>spotbugs-maven-plugin.it</groupId>
23+
<artifactId>common</artifactId>
24+
<version>testing</version>
25+
<relativePath>../common.xml</relativePath>
26+
</parent>
27+
<artifactId>check</artifactId>
28+
<name>check</name>
29+
<packaging>jar</packaging>
30+
<build>
31+
<plugins>
32+
<plugin>
33+
<groupId>com.github.spotbugs</groupId>
34+
<artifactId>spotbugs-maven-plugin</artifactId>
35+
<configuration>
36+
<xmlOutput>true</xmlOutput>
37+
<failOnError>false</failOnError>
38+
<debug>@spotbugsTestDebug@</debug>
39+
<threshold>High</threshold>
40+
</configuration>
41+
<executions>
42+
<execution>
43+
<id>run-analysis</id>
44+
<phase>process-classes</phase>
45+
<goals>
46+
<goal>spotbugs</goal>
47+
</goals>
48+
</execution>
49+
<execution>
50+
<id>process-results</id>
51+
<goals>
52+
<goal>verify</goal>
53+
</goals>
54+
</execution>
55+
</executions>
56+
</plugin>
57+
</plugins>
58+
</build>
59+
</project>

0 commit comments

Comments
 (0)