Skip to content

Commit cc828e8

Browse files
committed
HBASE-28921 Skip bundling hbase-webapps folder in jars (#6368)
We are bundling all webapp resources in hbase-server, hbase-thrift, hbase-rest and transitively to hbase-shaded-mapreduce jar. This can be an issue, say if any of the Js projects used by hbase are vulnerable, security scan tools like sonatype start flagging the jars too as vulnerable since they contain vulnerable code. With this JIRA, we skip bundling static webapp resources in our jars. Signed-off-by: Istvan Toth <[email protected]> Reviewed-by: Dávid Paksy <[email protected]> (cherry picked from commit 8366304)
1 parent ad4048a commit cc828e8

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

hbase-rest/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,15 @@
297297
<skipAssembly>true</skipAssembly>
298298
</configuration>
299299
</plugin>
300+
<plugin>
301+
<groupId>org.apache.maven.plugins</groupId>
302+
<artifactId>maven-jar-plugin</artifactId>
303+
<configuration>
304+
<excludes>
305+
<exclude>**/hbase-webapps/**</exclude>
306+
</excludes>
307+
</configuration>
308+
</plugin>
300309
<!-- General ant tasks, bound to different build phases -->
301310
<plugin>
302311
<artifactId>maven-antrun-plugin</artifactId>

hbase-server/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@
465465
<exclude>log4j.properties</exclude>
466466
<exclude>mapred-queues.xml</exclude>
467467
<exclude>mapred-site.xml</exclude>
468+
<exclude>**/hbase-webapps/**</exclude>
468469
</excludes>
469470
</configuration>
470471
</plugin>

hbase-thrift/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,15 @@
210210
<skipAssembly>true</skipAssembly>
211211
</configuration>
212212
</plugin>
213+
<plugin>
214+
<groupId>org.apache.maven.plugins</groupId>
215+
<artifactId>maven-jar-plugin</artifactId>
216+
<configuration>
217+
<excludes>
218+
<exclude>**/hbase-webapps/**</exclude>
219+
</excludes>
220+
</configuration>
221+
</plugin>
213222
<!-- General ant tasks, bound to different build phases -->
214223
<plugin>
215224
<artifactId>maven-antrun-plugin</artifactId>

0 commit comments

Comments
 (0)