adoroszlai opened a new pull request, #6359:
URL: https://github.com/apache/ozone/pull/6359

   ## What changes were proposed in this pull request?
   
   `maven-dependency-plugin` seems to ignore exclusions of transitive 
dependencies ([MDEP-844](https://issues.apache.org/jira/browse/MDEP-844)), 
resulting in larger than necessary Maven cache (including a 250MB jar for 
`aws-java-sdk-bundle` via Ranger).
   
   This PR changes the `populate-cache` workflow to run a regular build for 
creating the cache (suggested in 
[MDEP-904](https://issues.apache.org/jira/browse/MDEP-904)).  This reduces 
cache size from 750MB to 360MB.
   
   Shading is skipped to speed up the build.  A new property `maven.shade.skip` 
is added to only skip actual shading while still building (some) `ozonefs` 
modules.  Only `ozonefs-hadoop2` is included, not the ones for Hadoop 3.  The 
latter are unnecessary, since we already get the same dependencies by using the 
same version of Hadoop for Ozone elsewhere.
   
   Few plugins are not included in the cache this way, but they do not affect 
build time significantly.
   
   https://issues.apache.org/jira/browse/HDDS-10496
   
   ## How was this patch tested?
   
   cache build:
   https://github.com/adoroszlai/ozone/actions/runs/8215546994/job/22469127579
   
   regular CI (using cache):
   https://github.com/adoroszlai/ozone/actions/runs/8215582668


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to