Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-27225

Speedup build by skipping SBOM generation by default

    XMLWordPrintableJSON

Details

    Description

      A full build of Hive locally in my environment takes ~15 minutes.

      mvn clean install -DskipTests -Pitests
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  14:15 min
      

      Profiling the build shows that we are spending roughly 30% of CPU in org.cyclonedx.maven plugin which is used to generate SBOM artifacts (HIVE-26912).

      The SBOM generation does not need run in every single build and probably needs to be active only during the release build. To speed-up every-day builds I propose to activate the cyclonedx plugin only in the dist (release) profile.

      After this change, the default build drops from 14 minutes to 8.

      mvn clean install -DskipTests -Pitests
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  08:19 min
      

      Attachments

        Issue Links

          Activity

            People

              zabetak Stamatis Zampetakis
              zabetak Stamatis Zampetakis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h