File tree Expand file tree Collapse file tree 33 files changed +98
-106
lines changed
hadoop-cloud-storage-project/hadoop-cos
hadoop-hdfs-project/hadoop-hdfs-httpfs
hadoop-mapreduce-examples
hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase-tests Expand file tree Collapse file tree 33 files changed +98
-106
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ Maven build goals:
131
131
* Compile : mvn compile [-Pnative]
132
132
* Run tests : mvn test [-Pnative] [-Pshelltest]
133
133
* Create JAR : mvn package
134
- * Run findbugs : mvn compile findbugs:findbugs
134
+ * Run spotbugs : mvn compile spotbugs:spotbugs
135
135
* Run checkstyle : mvn compile checkstyle:checkstyle
136
136
* Install JAR in M2 cache : mvn install
137
137
* Deploy JAR to Maven repo : mvn deploy
Original file line number Diff line number Diff line change @@ -120,11 +120,11 @@ pipeline {
120
120
YETUS_ARGS+=("--proclimit=5500")
121
121
YETUS_ARGS+=("--dockermemlimit=22g")
122
122
123
- # -1 findbugs issues that show up prior to the patch being applied
124
- YETUS_ARGS+=("--findbugs -strict-precheck")
123
+ # -1 spotbugs issues that show up prior to the patch being applied
124
+ YETUS_ARGS+=("--spotbugs -strict-precheck")
125
125
126
126
# rsync these files back into the archive dir
127
- YETUS_ARGS+=("--archive-list=checkstyle-errors.xml,findbugsXml .xml")
127
+ YETUS_ARGS+=("--archive-list=checkstyle-errors.xml,spotbugsXml .xml")
128
128
129
129
# URL for user-side presentation in reports and such to our artifacts
130
130
# (needs to match the archive bits below)
Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ function personality_file_tests
482
482
fi
483
483
484
484
if [[ ${filename} =~ \. java$ ]]; then
485
- add_test findbugs
485
+ add_test spotbugs
486
486
fi
487
487
}
488
488
@@ -550,7 +550,7 @@ function shadedclient_rebuild
550
550
echo_and_redirect " ${logfile} " \
551
551
" ${MAVEN} " " ${MAVEN_ARGS[@]} " verify -fae --batch-mode -am \
552
552
" ${modules[@]} " \
553
- -Dtest=NoUnitTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dfindbugs .skip=true
553
+ -Dtest=NoUnitTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs .skip=true
554
554
555
555
count=$( " ${GREP} " -c ' \[ERROR\]' " ${logfile} " )
556
556
if [[ ${count} -gt 0 ]]; then
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ RUN apt-get -q update \
44
44
cmake \
45
45
curl \
46
46
doxygen \
47
- findbugs \
48
47
fuse \
49
48
g++ \
50
49
gcc \
@@ -91,7 +90,16 @@ RUN apt-get -q update \
91
90
ENV MAVEN_HOME /usr
92
91
# JAVA_HOME must be set in Maven >= 3.5.0 (MNG-6003)
93
92
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
94
- ENV FINDBUGS_HOME /usr
93
+
94
+ # ######
95
+ # Install SpotBugs 4.0.6
96
+ # ######
97
+ RUN mkdir -p /opt/spotbugs \
98
+ && curl -L -s -S https://github.com/spotbugs/spotbugs/releases/download/4.0.6/spotbugs-4.0.6.tgz \
99
+ -o /opt/spotbugs.tgz \
100
+ && tar xzf /opt/spotbugs.tgz --strip-components 1 -C /opt/spotbugs \
101
+ && chmod +x /opt/spotbugs/bin/*
102
+ ENV SPOTBUGS_HOME /opt/spotbugs
95
103
96
104
# ######
97
105
# Install Boost 1.72 (1.71 ships with Focal)
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ RUN apt-get -q update \
48
48
cmake \
49
49
curl \
50
50
doxygen \
51
- findbugs \
52
51
fuse \
53
52
g++ \
54
53
gcc \
@@ -95,7 +94,16 @@ RUN apt-get -q update \
95
94
ENV MAVEN_HOME /usr
96
95
# JAVA_HOME must be set in Maven >= 3.5.0 (MNG-6003)
97
96
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-arm64
98
- ENV FINDBUGS_HOME /usr
97
+
98
+ #######
99
+ # Install SpotBugs 4.0.6
100
+ #######
101
+ RUN mkdir -p /opt/spotbugs \
102
+ && curl -L -s -S https://github.com/spotbugs/spotbugs/releases/download/4.0.6/spotbugs-4.0.6.tgz \
103
+ -o /opt/spotbugs.tgz \
104
+ && tar xzf /opt/spotbugs.tgz --strip-components 1 -C /opt/spotbugs \
105
+ && chmod +x /opt/spotbugs/bin/*
106
+ ENV SPOTBUGS_HOME /opt/spotbugs
99
107
100
108
#######
101
109
# Install Boost 1.72 (1.71 ships with Focal)
Original file line number Diff line number Diff line change 64
64
<build >
65
65
<plugins >
66
66
<plugin >
67
- <groupId >org.codehaus.mojo </groupId >
68
- <artifactId >findbugs -maven-plugin</artifactId >
67
+ <groupId >com.github.spotbugs </groupId >
68
+ <artifactId >spotbugs -maven-plugin</artifactId >
69
69
<configuration >
70
- <findbugsXmlOutput >true</findbugsXmlOutput >
71
70
<xmlOutput >true</xmlOutput >
72
71
<excludeFilterFile >${basedir} /dev-support/findbugs-exclude.xml
73
72
</excludeFilterFile >
Original file line number Diff line number Diff line change 237
237
</executions >
238
238
</plugin >
239
239
<plugin >
240
- <groupId >org.codehaus.mojo </groupId >
241
- <artifactId >findbugs -maven-plugin</artifactId >
240
+ <groupId >com.github.spotbugs </groupId >
241
+ <artifactId >spotbugs -maven-plugin</artifactId >
242
242
<configuration >
243
243
<excludeFilterFile >${basedir} /dev-support/findbugsExcludeFile.xml</excludeFilterFile >
244
244
</configuration >
Original file line number Diff line number Diff line change 237
237
</executions >
238
238
</plugin >
239
239
<plugin >
240
- <groupId >org.codehaus.mojo </groupId >
241
- <artifactId >findbugs -maven-plugin</artifactId >
240
+ <groupId >com.github.spotbugs </groupId >
241
+ <artifactId >spotbugs -maven-plugin</artifactId >
242
242
<configuration >
243
243
<excludeFilterFile >${basedir} /dev-support/findbugsExcludeFile.xml
244
244
</excludeFilterFile >
Original file line number Diff line number Diff line change 53
53
<build >
54
54
<plugins >
55
55
<plugin >
56
- <groupId >org.codehaus.mojo </groupId >
57
- <artifactId >findbugs -maven-plugin</artifactId >
56
+ <groupId >com.github.spotbugs </groupId >
57
+ <artifactId >spotbugs -maven-plugin</artifactId >
58
58
<configuration >
59
59
<excludeFilterFile >${basedir} /dev-support/findbugsExcludeFile.xml
60
60
</excludeFilterFile >
Original file line number Diff line number Diff line change 107
107
<build >
108
108
<plugins >
109
109
<plugin >
110
- <groupId >org.codehaus.mojo </groupId >
111
- <artifactId >findbugs -maven-plugin</artifactId >
110
+ <groupId >com.github.spotbugs </groupId >
111
+ <artifactId >spotbugs -maven-plugin</artifactId >
112
112
<configuration >
113
113
<excludeFilterFile >${basedir} /dev-support/findbugsExcludeFile.xml
114
114
</excludeFilterFile >
Original file line number Diff line number Diff line change 163
163
</resources >
164
164
<plugins >
165
165
<plugin >
166
- <groupId >org.codehaus.mojo </groupId >
167
- <artifactId >findbugs -maven-plugin</artifactId >
166
+ <groupId >com.github.spotbugs </groupId >
167
+ <artifactId >spotbugs -maven-plugin</artifactId >
168
168
<configuration >
169
- <findbugsXmlOutput >true</findbugsXmlOutput >
170
169
<xmlOutput >true</xmlOutput >
171
170
<excludeFilterFile >${project.basedir} /dev-support/findbugs-exclude.xml</excludeFilterFile >
172
171
<effort >Max</effort >
Original file line number Diff line number Diff line change 337
337
</executions >
338
338
</plugin >
339
339
<plugin >
340
- <groupId >org.codehaus.mojo </groupId >
341
- <artifactId >findbugs -maven-plugin</artifactId >
340
+ <groupId >com.github.spotbugs </groupId >
341
+ <artifactId >spotbugs -maven-plugin</artifactId >
342
342
<configuration >
343
343
<excludeFilterFile >${basedir} /dev-support/findbugsExcludeFile.xml</excludeFilterFile >
344
344
</configuration >
Original file line number Diff line number Diff line change 157
157
<build >
158
158
<plugins >
159
159
<plugin >
160
- <groupId >org.codehaus.mojo </groupId >
161
- <artifactId >findbugs -maven-plugin</artifactId >
160
+ <groupId >com.github.spotbugs </groupId >
161
+ <artifactId >spotbugs -maven-plugin</artifactId >
162
162
<configuration >
163
- <findbugsXmlOutput >true</findbugsXmlOutput >
164
163
<xmlOutput >true</xmlOutput >
165
164
<excludeFilterFile >${mr.basedir} /dev-support/findbugs-exclude.xml</excludeFilterFile >
166
165
<effort >Max</effort >
Original file line number Diff line number Diff line change 138
138
</plugin >
139
139
140
140
<plugin >
141
- <groupId >org.codehaus.mojo </groupId >
142
- <artifactId >findbugs -maven-plugin</artifactId >
141
+ <groupId >com.github.spotbugs </groupId >
142
+ <artifactId >spotbugs -maven-plugin</artifactId >
143
143
<configuration >
144
- <findbugsXmlOutput >true</findbugsXmlOutput >
145
144
<xmlOutput >true</xmlOutput >
146
145
<excludeFilterFile >${mr.examples.basedir} /dev-support/findbugs-exclude.xml</excludeFilterFile >
147
146
<effort >Max</effort >
Original file line number Diff line number Diff line change 178
178
</executions >
179
179
</plugin >
180
180
<plugin >
181
- <groupId >org.codehaus.mojo </groupId >
182
- <artifactId >findbugs -maven-plugin</artifactId >
181
+ <groupId >com.github.spotbugs </groupId >
182
+ <artifactId >spotbugs -maven-plugin</artifactId >
183
183
<configuration >
184
- <findbugsXmlOutput >true</findbugsXmlOutput >
185
184
<xmlOutput >true</xmlOutput >
186
185
<excludeFilterFile >${mr.basedir} /dev-support/findbugs-exclude.xml</excludeFilterFile >
187
186
<effort >Max</effort >
299
298
<reporting >
300
299
<plugins >
301
300
<plugin >
302
- <groupId >org.codehaus.mojo</groupId >
303
- <artifactId >findbugs-maven-plugin</artifactId >
304
- <!-- until we have reporting management cf. MSITE-443 -->
305
- <version >2.3.2</version >
301
+ <groupId >com.github.spotbugs</groupId >
302
+ <artifactId >spotbugs-maven-plugin</artifactId >
306
303
<configuration >
307
- <findbugsXmlOutput >true</findbugsXmlOutput >
308
304
<xmlOutput >true</xmlOutput >
309
305
</configuration >
310
306
</plugin >
Original file line number Diff line number Diff line change 89
89
</executions >
90
90
</plugin >
91
91
<plugin >
92
- <groupId >org.codehaus.mojo </groupId >
93
- <artifactId >findbugs -maven-plugin</artifactId >
92
+ <groupId >com.github.spotbugs </groupId >
93
+ <artifactId >spotbugs -maven-plugin</artifactId >
94
94
<configuration >
95
95
<excludeFilterFile >${basedir} /dev-support/findbugsExcludeFile.xml</excludeFilterFile >
96
- <fork >true</fork >
97
96
<maxHeap >2048</maxHeap >
98
97
</configuration >
99
98
</plugin >
Original file line number Diff line number Diff line change 101
101
<zookeeper .version>3.5.6</zookeeper .version>
102
102
<curator .version>4.2.0</curator .version>
103
103
<findbugs .version>3.0.5</findbugs .version>
104
- <spotbugs .version>4.0.6</spotbugs .version>
105
104
<dnsjava .version>2.1.7</dnsjava .version>
106
105
107
106
<guava .version>27.0-jre</guava .version>
1866
1865
<artifactId >maven-war-plugin</artifactId >
1867
1866
<version >${maven-war-plugin.version} </version >
1868
1867
</plugin >
1869
- <plugin >
1870
- <groupId >org.codehaus.mojo</groupId >
1871
- <artifactId >findbugs-maven-plugin</artifactId >
1872
- <version >${findbugs.version} </version >
1873
- <dependencies >
1874
- <dependency >
1875
- <groupId >com.github.spotbugs</groupId >
1876
- <artifactId >spotbugs</artifactId >
1877
- <version >${spotbugs.version} </version >
1878
- </dependency >
1879
- </dependencies >
1880
- </plugin >
1881
1868
<plugin >
1882
1869
<groupId >org.codehaus.mojo</groupId >
1883
1870
<artifactId >make-maven-plugin</artifactId >
2111
2098
</filesets >
2112
2099
</configuration >
2113
2100
</plugin >
2114
- <plugin >
2115
- <groupId >org.codehaus.mojo</groupId >
2116
- <artifactId >findbugs-maven-plugin</artifactId >
2117
- </plugin >
2118
2101
<plugin >
2119
2102
<groupId >org.apache.maven.plugins</groupId >
2120
2103
<artifactId >maven-antrun-plugin</artifactId >
Original file line number Diff line number Diff line change 58
58
<build >
59
59
<plugins >
60
60
<plugin >
61
- <groupId >org.codehaus.mojo </groupId >
62
- <artifactId >findbugs -maven-plugin</artifactId >
61
+ <groupId >com.github.spotbugs </groupId >
62
+ <artifactId >spotbugs -maven-plugin</artifactId >
63
63
<configuration >
64
- <findbugsXmlOutput >true</findbugsXmlOutput >
65
64
<xmlOutput >true</xmlOutput >
66
65
<excludeFilterFile >${basedir} /dev-support/findbugs-exclude.xml
67
66
</excludeFilterFile >
Original file line number Diff line number Diff line change 194
194
</executions >
195
195
</plugin >
196
196
<plugin >
197
- <groupId >org.codehaus.mojo </groupId >
198
- <artifactId >findbugs -maven-plugin</artifactId >
197
+ <groupId >com.github.spotbugs </groupId >
198
+ <artifactId >spotbugs -maven-plugin</artifactId >
199
199
<configuration >
200
- <findbugsXmlOutput >true</findbugsXmlOutput >
201
200
<xmlOutput >true</xmlOutput >
202
201
<excludeFilterFile >
203
202
${basedir} /dev-support/findbugs-exclude.xml
Original file line number Diff line number Diff line change 399
399
<build >
400
400
<plugins >
401
401
<plugin >
402
- <groupId >org.codehaus.mojo </groupId >
403
- <artifactId >findbugs -maven-plugin</artifactId >
402
+ <groupId >com.github.spotbugs </groupId >
403
+ <artifactId >spotbugs -maven-plugin</artifactId >
404
404
<configuration >
405
- <findbugsXmlOutput >true</findbugsXmlOutput >
406
405
<xmlOutput >true</xmlOutput >
407
406
<excludeFilterFile >${basedir} /dev-support/findbugs-exclude.xml
408
407
</excludeFilterFile >
Original file line number Diff line number Diff line change 50
50
<build >
51
51
<plugins >
52
52
<plugin >
53
- <groupId >org.codehaus.mojo </groupId >
54
- <artifactId >findbugs -maven-plugin</artifactId >
53
+ <groupId >com.github.spotbugs </groupId >
54
+ <artifactId >spotbugs -maven-plugin</artifactId >
55
55
<configuration >
56
- <findbugsXmlOutput >true</findbugsXmlOutput >
57
56
<xmlOutput >true</xmlOutput >
58
57
<excludeFilterFile >${basedir} /dev-support/findbugs-exclude.xml
59
58
</excludeFilterFile >
Original file line number Diff line number Diff line change 108
108
<build >
109
109
<plugins >
110
110
<plugin >
111
- <groupId >org.codehaus.mojo </groupId >
112
- <artifactId >findbugs -maven-plugin</artifactId >
111
+ <groupId >com.github.spotbugs </groupId >
112
+ <artifactId >spotbugs -maven-plugin</artifactId >
113
113
<configuration >
114
- <findbugsXmlOutput >true</findbugsXmlOutput >
115
114
<xmlOutput >true</xmlOutput >
116
115
<excludeFilterFile >${basedir} /dev-support/findbugs-exclude.xml
117
116
</excludeFilterFile >
Original file line number Diff line number Diff line change 87
87
</configuration >
88
88
</plugin >
89
89
<plugin >
90
- <groupId >org.codehaus.mojo </groupId >
91
- <artifactId >findbugs -maven-plugin</artifactId >
90
+ <groupId >com.github.spotbugs </groupId >
91
+ <artifactId >spotbugs -maven-plugin</artifactId >
92
92
<configuration >
93
- <findbugsXmlOutput >true</findbugsXmlOutput >
94
93
<xmlOutput >true</xmlOutput >
95
94
<excludeFilterFile >${basedir} /dev-support/findbugs-exclude.xml</excludeFilterFile >
96
95
<effort >Max</effort >
Original file line number Diff line number Diff line change 123
123
<build >
124
124
<plugins >
125
125
<plugin >
126
- <groupId >org.codehaus.mojo </groupId >
127
- <artifactId >findbugs -maven-plugin</artifactId >
126
+ <groupId >com.github.spotbugs </groupId >
127
+ <artifactId >spotbugs -maven-plugin</artifactId >
128
128
<configuration >
129
- <findbugsXmlOutput >true</findbugsXmlOutput >
130
129
<xmlOutput >true</xmlOutput >
131
130
<excludeFilterFile >${basedir} /dev-support/findbugs-exclude.xml</excludeFilterFile >
132
131
<effort >Max</effort >
Original file line number Diff line number Diff line change 39
39
<build >
40
40
<plugins >
41
41
<plugin >
42
- <groupId >org.codehaus.mojo </groupId >
43
- <artifactId >findbugs -maven-plugin</artifactId >
42
+ <groupId >com.github.spotbugs </groupId >
43
+ <artifactId >spotbugs -maven-plugin</artifactId >
44
44
<configuration >
45
- <findbugsXmlOutput >true</findbugsXmlOutput >
46
45
<xmlOutput >true</xmlOutput >
47
46
<effort >Max</effort >
48
47
</configuration >
Original file line number Diff line number Diff line change 66
66
<build >
67
67
<plugins >
68
68
<plugin >
69
- <groupId >org.codehaus.mojo </groupId >
70
- <artifactId >findbugs -maven-plugin</artifactId >
69
+ <groupId >com.github.spotbugs </groupId >
70
+ <artifactId >spotbugs -maven-plugin</artifactId >
71
71
<configuration >
72
- <findbugsXmlOutput >true</findbugsXmlOutput >
73
72
<xmlOutput >true</xmlOutput >
74
73
<excludeFilterFile >${basedir} /dev-support/findbugs-exclude.xml
75
74
</excludeFilterFile >
You can’t perform that action at this time.
0 commit comments