Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8833

sling-bundle-parent: Disable includeDistributionManagement for bnd-baseline-maven-plugin

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Bundle Parent 35
    • Fix Version/s: Bundle Parent 36
    • Component/s: General
    • Labels:
      None

      Description

      the bnd-baseline-maven-plugin has a strange feature enabled by default: when resolving the latest release versions it does not only check in the maven repository configured in the maven environment (e.g. maven central), but tries also to download them form the URLs configured as distribution management.

      this is normally nothing you want to to - and in our case leads to warnings in the build like

      [INFO] --- bnd-baseline-maven-plugin:4.2.0:baseline (bnd-baseline) @ org.apache.sling.servlet-helpers ---
      [INFO] Determining the baseline version for org.apache.sling:org.apache.sling.servlet-helpers:jar:(,1.3.1-SNAPSHOT) using repositories [apache.releases.https (https://repository.apache.org/service/local/staging/deploy/maven2, default, releases+snapshots), central (https://nexus.pvtool.org/content/groups/default, default, releases+snapshots)]
      Downloading from apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/sling/org.apache.sling.servlet-helpers/maven-metadata.xml
      [WARNING] Could not transfer metadata org.apache.sling:org.apache.sling.servlet-helpers/maven-metadata.xml from/to apache.releases.https (https://repository.apache.org/service/local/staging/deploy/maven2): Failed to transfer file: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/sling/org.apache.sling.servlet-helpers/maven-metadata.xml. Return code is: 400 , ReasonPhrase:Bad Request.
      

      we should just disable this feature (luckily there is a switch for it).

        Attachments

          Activity

            People

            • Assignee:
              sseifert Stefan Seifert
              Reporter:
              sseifert Stefan Seifert
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: