Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-16721

Maven dependencies are not being cached in pipeline build

    XMLWordPrintable

Details

    Description

      I've got a simple pipeline file:

      image: softinstigate/maven-aws
      
      pipelines:
        # For all branches we will verify the code can be built successfully
        default:
          - step:
              name: Verify code
              caches:
                - maven
              script:
                - mvn verify
      

      During the Build setup I can see

      Cache "maven": Downloading
      Cache "maven": Downloaded 138 MB in 12 seconds
      Cache "maven": Extracting
      Cache "maven": Extracted in 2 seconds
      

      But then during my Verify code step maven starts downloading all dependencies:

      Downloaded from maven2: http://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/maven-metadata.xml (3.3 kB at 34 kB/s)
      Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/maven-metadata.xml (3.3 kB at 41 kB/s)
      Downloading from maven2: http://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/maven-metadata.xml
      Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/maven-metadata.xml
      

      I'm not running into this problem with my node projects.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cd96e89e53bf Steve Sample
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: