Well, it works now, but not like I wanted. First wat did not work: Setting a win environment variable MAVEN_OPTS to: -Duser.home="%USERPROFILE%" or -Duser.home=%USERPROFILE%
What did work was setting it to: -Duser.home="C:\documents and settings\NLIWER" It will be just a part of setting up the workspace I guess... On 5/23/06, Ronald Iwema <[EMAIL PROTECTED]> wrote:
That actually explains the problem I guess.. I googled and found this: http://www.jadetower.org/muses/archives/000189.html Quote: "There's a really annoying bug<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4787931>in the Java virtual machine on Windows: the Java *user.home* system property is based on the location of the Windows Desktop folder not the Windows USERPROFILE variable." So I tried set MAVEN_OPTS -Duser.home="%USERPROFILE%" But that does not seem to work yet. Note, I tried it both with and without the "" It is still pointing to c:\WinNT\.m2 On 5/23/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > > 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] > >
