5 Replies Latest reply on Nov 28, 2011 4:21 AM by Mickaël Leduque

    Using current maven settings.xml

    Mickaël Leduque Newbie


      I'm trying to use the maven dependency resolution with shrinkwrap and I need to retrieve the settings from the current maven execution.


      Those are integration test cases run under maven. In those tests, I need to get artifacts as dependencies. I can't hardcode a settings.xml location (or a settings.xml as resource) because this location changes between developer machines and with the locations on the CI server.


      But if I don't tell where the setttings.xml is, aether won't use my local repository.


      How do I tell shrinkwrap to reuse the same settings.xml file as the running maven ?