PDavid opened a new pull request, #7031:
URL: https://github.com/apache/hbase/pull/7031

   ### As is
   
   Currently, the static JavaScript, CSS resources need to be manually managed. 
That is, if any of these has to be updated, we will be required to download 
them from web and place them under the appropriate path. This can be cumbersome.
   
   ### After
   
   To be able to manage them with minimal manual effort we could manage them as 
part of build.
   
   #### Approach
   
   This solution is very similar to how we manage the websitestatic resources 
in our build: https://github.com/apache/hbase/pull/6668 
   
   Download and extract the UI resources as [webjars](https://www.webjars.org/) 
using the `maven-dependency-plugin` in our build. It will only copy the 
required files to the `hbase-server/target/hbase-webapps/static` directory.
   
   The REST and Thrift projects copies the static JavaScript, CSS resources 
from hbase-server - as before.
   
   This way the no new dependency is packaged into the application, only the 
required JS, CSS files are copied and packaged.
   
   #### Upgrading in the future
   
   From now on upgrading the static JavaScript, CSS resources means to:
   - Check if the webjar is available for the new version: if not, open a new 
request for it at: https://github.com/webjars/webjars-classic/issues/new
   - Increment the version properties in root `pom.xml`.
   
   #### Upgrades
   
   Also upgraded the following static resources to current latest version:
   - jquery: 3.5.1 -> 3.7.1
   - tablesorter: 2.31.3 -> 2.32.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@hbase.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to