Uploaded image for project: 'Maven Build Cache Extension'
  1. Maven Build Cache Extension
  2. MBUILDCACHE-81

Add an option to include project version as part of the cache hash key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • None
    • Important

    Description

      Current Behavior

      The MBUILDCACHE-76 has broken cache reuse between project versions in a multi-module projects, i.e. changing version from 1.0.0-SNAPSHOT to 1.0.0 causes the cache to miss the checksum validation which causes full rebuild of the project.

      Expected Behavior 

      The build cache version normalization should support project version agnostic caches, so that restoring project from cache avoids repeating expensive tasks like running tests according to  features: https://maven.apache.org/extensions/maven-build-cache-extension/index.html

      Possible Solutions

      • Disable cache for releases if the build requires rebuild due to version changes.
      • Introduce a feature flag configuration to use project version in checksum calculations for cache invalidation

       

       

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              igdianov Igor Dianov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: