Re: Thought on handling different Maven .m2 folders

2024-01-27 Thread Neil C Smith
On Sat, 27 Jan 2024 at 09:13, Lars Bruun-Hansen wrote: > Another thought: Maven command execution shell still supports a > "$HOME/.mavenrc" file which is executed (sourced) by Maven before it > does anything else. It will be fired each and every time you execute > the "mvn" command. I don't know

Re: Thought on handling different Maven .m2 folders

2024-01-27 Thread Lars Bruun-Hansen
> For certain git branches, I want to use a different .m2 folder. Even if possible maybe revisit why you need this? In any case, Maven supports (since 3.3 or something) that you can have a local ".mvn" folder in your project. See this: https://maven.apache.org/configure.html This makes it easy

Re: Thought on handling different Maven .m2 folders

2024-01-26 Thread Pieter van den Hombergh
maybe you want to use profiles for this, which can be added in the pom.xml proper. that would at least shorten the commandline, but is also an artefact of the project and would be the better option imho. met vriendelijke groet Pieter van den Hombergh Op vr 26 jan 2024 17:01 schreef Nelligan,

Thought on handling different Maven .m2 folders

2024-01-26 Thread Nelligan, Steven M
In the maven Tools\Options\Java\Maven, there is a prompt for Global Execution Options: Currently I use -U -SkipTests -gs C:\Users\\m2_for_project\.m2\settings -s C: \Users\\m2_for_project \.m2\settings.xml The settings.xml file contain a localRepository tag which points to different