Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-303

MavenSettings doesn't support value interpolation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.6.1.Final
    • None
    • Maven
    • None

    Description

      Maven settings.xml supports value interpolation as described in https://maven.apache.org/settings.html However, the settings.xml parser in JBoss Modules' class MavenSettings doesn't.

      Which means that if user's settings.xml contains e.g. <localRepository>${user.home}/.mvnrepository</localRepository>, resolving resources from Maven artifacts (and probably a host of other things) doesn't work.

      Also noting that this isn't a fictional scenario – the default Maven settings.xml in OpenShift.io contains exactly that: https://github.com/fabric8io/fabric8-team-components/blob/master/jenkins-openshift/src/main/fabric8/jenkins-maven-settings-secret.yml

      Attachments

        Activity

          People

            dlloyd@redhat.com David Lloyd
            lthon@redhat.com Ladislav Thon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: