maven doesn't use %userprofile% but the java system property user.home
I don't know if this property is mapped to %USERPROFILE% or %HOMEPATH%
Emmanuel
Ronald Iwema a écrit :
Hi,
I'm fairly new to Maven(2), and I'm also working on a machine which isn't
mine. I have to set up a proxy to use Maven, and I know how to, I did it on
a machine of my own, by making a settings.xml and put it in
%userprofile%\.m2\
On this machine I did the same, but it did not work. It would only work
when
I put the settings.xml in the %maven_home%\conf folder. It seemed to work
then, so the only explanation for me is that the settings.xml in my profile
folder was ignored. To make sure that was the case I did the following:
C:\development\sandbox>echo %userprofile%
C:\Documents and Settings\NLIWER
Well, it seems that environment var is set as it should. Then I did the
following:
C:\development\sandbox>mvn -X archetype:create
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from:
'c:\winnt\.m2\plugin- registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\development\ext\maven-2.0.4\bin\..\conf\plugin-registry.xml'
I cur the rest. I know the command is not properly used this way, but it
reveals something I did not expect:It is using c:\winnt\.m2\
Why would maven do that?
Kind Regards,
Ronald Iwema
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]