Lo_B
Lo_B

Reputation: 1

Can't find where netbeans 8.1 stores the path to the maven local repository (.m2)


I moved the local repository and changed it in the settings.xml in the .m2 but netbeans keeps looking for the previous location. I am having some difficulties to find where netbeans stores the path to the maven local repository.

In another question, I found the following answer :
"In Project Explorer window within Netbeans you will find services tab. Goto: services->maven repositories->local->right click->properties You will get the Local Repository path which netbeans is using."
I found the path used. But that, I already knew.

If it can be of any help, here's my research so far :
I checked every file I could think of (build.properties, pom.xml, config files in the netbeans install folder or in the User_Home/appData/netbeans)... netbeans keeps searching for the older path.

I edited the settings.xml in maven_home (bundled so in netbeans/java/maven..) by giving the new path in the <localRepository> section without success.

Any idea in which file this path could be stored? Could it be in the netBeans cache?

Upvotes: 0

Views: 178

Answers (1)

Antonio Petricca
Antonio Petricca

Reputation: 11036

I found it in ~/.netbeans/9.0/config/Preferences/org/openide/filesystems/nb.properties. Maybe?

Upvotes: 0

Related Questions