Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-3010

maven settings script MAVEN_REPOS prefixes lowercase

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • None
    • EAPCD 15.0.GA
    • Common

      In example of MAVEN_MIRRORS there are lowercase with dash prefixes "dev-one,qe-two". This can not work because it is necessary to use prefix in uppercase with underscore when trying to read prefix_MAVEN_MIRROR_URL.

      Now it is reading dev-one_MAVEN_MIRROR_URL, but it should read DEV_ONE_MAVEN_MIRROR_URL.

      Desired function is introduced in CLOUD-2911: _maven_find_prefixed_env()

      Example of MAVEN_MIRRORS:
      https://github.com/jboss-openshift/cct_module/blob/master/jboss/container/maven/api/module.yaml

      Obsolete usa of _maven_find_env():
      https://github.com/jboss-openshift/cct_module/blob/2473cf2117d2487ca1a72ff77306776a44266575/jboss/container/maven/default/bash/artifacts/opt/jboss/container/maven/default/maven.sh#L180

      There exists way to avoid this: Use uppercase without dash in MAVEN_MIRRORS (e.g. dev-one -> DEVONE).

            rhn-support-rromerom Ruben Romero Montes
            penehyba Petr Nehyba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: