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

Support for reading the Maven settings file location as a system property

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 1.6.0.Beta7, 1.7.0.Beta1
    • 1.5.2.Final
    • Maven
    • None
    • User Experience

      It would be nice if the library can support reading the maven settings file location via System properties.

      Maven allows end users to specify a custom settings.xml file via the command line switch of "-s". I use this feature quite a bit, especially when it comes to switching between public & private repositories.

      I was recently trying to make a fix on WildFly Swarm, when I noticed that the build fails because one of the tests uses this library for locating dependent modules. In the following class,

      org.wildfly.swarm.bootstrap.modules.MavenResolvers

      , there is no option for loading a custom settings XML file. It would be really cool, if we can have an option to lookup a system property (some thing like MAVEN_SETTINGS_XML ) before looking for the file in the default locations. This would help scenarios where people use different settings for different scenarios.

      If this is an acceptable enhancement, then I can submit the required PR as well.

              dlloyd@redhat.com David Lloyd
              roguexz-1 Harsha Ramesh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: