-
Enhancement
-
Resolution: Done
-
Minor
-
1.5.2.Final
-
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.