Did you delete the .m2 folder in your users folder?
STEVEN M NELLIGAN -----Original Message----- From: Davide Grandi <[email protected]> Sent: Friday, December 4, 2020 8:38 AM To: [email protected] Subject: Re: Moving the .M2 folder in Netbeans I've set the variable set MAVEN_OPTS= -Duser.home=C:\sviluppo\user.home here, in file C:\sviluppo\user.home\.m2\settings.xml I've setup a repository in <localRepository>/sviluppo/appdata/maven/current/repository</localRepository> (the real path on disk is in win style). Actually I've a main setup file C:\sviluppo\bin\dg.cmd that I run when I start working (in a cmd.exe, of course, then nb => current netbeans, nb8 => the old one, ...). It works, but your mileage can vary. cheers, Davide Grandi On 03/12/2020 17:02, Nelligan, Steven M wrote: > I want to move the .m2 folder from my windows user's profile folder to be > within my project folder. > i.e. C:\dev\Projects-Java8\.m2 > > In Netbeans \Options\Java\Maven I have the following configurations: > Maven Home: C:\Program Files\apache-maven-3.6.3 > Default JDK: JDK 1.8 > Global Execution Options: -gs C:\dev\Projects-java8\.m2\settings.xml > -s C:\dev\Projects-java8\.m2\settings.xml > > If I build the project with the .m2 folder deleted from my window user's > profile everything is working. > > The problem is that the NetBeans IDE shows errors in the edit windows (red > underline), since it cannot resolve the imports. > If I put a copy of the .m2 folder in my window user's profile, the red line > disappear. > > How do I configure Netbeans to have the edit window look in the redirected > .m2 folder. > > Thanks in advance, > Steve Nelligan > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > -- Ing. Davide Grandi email : [email protected] mobile : +39 339 7468 778 linkedin : http://linkedin.com/in/davidegrandi --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
