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, Steven M <snell...@illinois.edu>:

>
> In the maven Tools\Options\Java\Maven, there is a prompt for Global
> Execution Options:
> Currently I use -U -SkipTests -gs
> C:\Users\XXXX\m2_for_project\.m2\settings -s C: \Users\XXXX\m2_for_project
> \.m2\settings.xml
> The settings.xml file contain a localRepository tag which points to
> different .m2 folders.
>
> For certain git branches, I want to use a different .m2 folder.
>
> Currently I edit the above setting when I change the git branch.
>
> I was wondering if it would work, if I store the setting.xml file in git
> and then reference it in the above settings file.
> i.e. c:\dev\gitFolder\mavenFolder\settings.xml
>
> Any options or comments on the above?
>
>
> Thanks in advance,
>
> STEVEN M NELLIGAN
> SENIOR SOFTWARE DEVELOPER
>
> Facilities and Services
> Information Technology Services
> University of Illinois at Urbana-Champaign
> Facilities and Services
> 1501 S. Oak Street | M/C 800
> Champaign, IL 61820
>
> Under the Illinois Freedom of Information Act any written communication to
> or from university employees regarding university business is a public
> record and may be subject to public disclosure.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

Reply via email to