You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by ps...@throwarock.com on 2022/02/03 18:04:19 UTC
Re: Netbeans 12.2 Maven local repository question - solved! Thanks
I added the following to my c:\users\xxx\.m2\settings.xml
<localRepository>e:/MavenBinaries/repository</localRepository>
The jars I create now go to the new local repository.
Problem resolved. Thanks to all who gave me the correct answer
On 2022-02-03 09:35, Ernie Rael wrote:
> On 2/3/22 8:33 AM, pszudzik@throwarock.com wrote:
>
>> Ok, I was running out of disk space on my C: drive, and the local maven repository was located at c:\users\xxxx\.m2
>>
>> I wanted to get rid of that and move it to the E: drive where I have terabytes of room. So I used the Options Maven experimental entry to hopefully move the repository there.
>>
>> Believe that worked, based on my testing... EXCEPT:
>>
>> When I compile my code, the compiled jars do not go to that repository, they are going to the original one on the C: drive. Easily verified by looting at the time stamps
>>
>> So, my question: Is this experimental way to move the repository now NOT experimental in 12.6? And how do I get the maven code to send my new jars to the new repository...
>>
>> Thank you.
> I don't know about any NB options you're talking about. When I ran into this problem a few years ago I used a maven technique to put the local repository on a different drive. In <home>/.m2/settings.xml I put
>
> <localRepository>C:/f/j/maven_repository</localRepository>
>
> note on my system I have F: mounted at C:/f
>
> Maybe some variation of this might be of use.
>
> -ernie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists