Maven doesn't recognize my user profile and searches for .m2 elsewhere

I inherited the car from another person, and maven thinks I'm a different user. It's me:

C:\> echo %USERPROFILE%
C:\Users\awesomeuser

Although maven believes that I am an administrator and cannot create a .m2 folder there.

[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from c:\apps\tools\apache-maven-3.1.0\bin\..\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\Administrator\.m2\settings.xml
[DEBUG] Using local repository at C:\Users\Administrator\.m2\repository
[ERROR] Could not create local repository at C:\Users\Administrator\.m2\repository -> [Help 1]
org.apache.maven.repository.LocalRepositoryNotAccessibleException: Could not create local repository at C:\Users\Administrator\.m2\repository

Any ideas on how to get maven for recognition, I'm not an awesomeuser admin?

+4
source share
2 answers

It turns out my problem to a greater extent, this: fooobar.com/questions/5256 / ... . I have many links to C: \ Users \ Administrator in

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

+1
source

I'm not sure which environmental variable calls Maven to look for the wrong home directory.

-s --settings, , .xml.

, m2.conf \bin. .

EDIT:

, Maven Java user.home. , .

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4787931

+2

All Articles