fabric8-analytics-vscode-extension icon indicating copy to clipboard operation
fabric8-analytics-vscode-extension copied to clipboard

Maven: Add -s option to support specifying a custom settings.xml file.

Open mrg opened this issue 3 years ago • 3 comments

Cannot use the plugin because project requires a custom settings.xml file and could not find a way to specify this file in the project's README.

Please add the ability to specify custom settings (mvn -s ~/custom-settings.xml). Ideally per-project in case different projects require different settings.

mrg avatar May 05 '21 16:05 mrg

+1 from me. As a workaround: Have a look at the output console, it will show you where it expects a settings.xml. You kann link your custom settings there

caroso-de avatar Sep 16 '22 06:09 caroso-de

I know the location of the standard settings (~/.m2/settings.xml) which is where I have generalized settings. I also have a ~/.m2/current-client-settings.xml which I have set up for when I'm on VPN doing work for my current client (needs to use their private Nexus, etc). I have the rest of my environment set up to support that work on a per-project basis, but this plugin only looks at the generalized settings and not the custom one I need. Hoping for a generalized way to have a dot-file or similar I can put in each repository root that will instruct the plugin of custom settings when needed.

The only alternative I can find is manually moving ~/.m2 settings files around when I'm on/off VPN, which is annoying/cumbersome. I even looked for ways to run custom scripts with the VPN client that I could use to automate moving settings when I connect/disconnect, but that isn't supported, either.

mrg avatar Sep 16 '22 12:09 mrg

i agree, ist’s not optimal

caroso-de avatar Sep 16 '22 17:09 caroso-de