[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [virgo-dev] Cannot find H2 jars in .m2 Maven repository (was: (no subject))

sorry, I have to correct myself: It looks like %HOMEPATH% really is correct and that just on my (and DuanQi's) system this variable was not set properly - for whatever reasons...). So the script h2.bat is correct and whoever has the same problem should rather ensure that his/her HOMEPATH variable is set correctly.

However, I would have still one remark: %HOMEPATH% omits the drive, so this will work only if you install greenpages on your homedrive. The more general solution would be to use 

	%HOMEDRIVE%\%HOMEPATH%

instead.

Regards,
Bernd

PS: Or maybe this has changed on Windows7 ...


-----Original Message-----
From: virgo-dev-bounces@xxxxxxxxxxx [mailto:virgo-dev-bounces@xxxxxxxxxxx] On Behalf Of Hofmann, Bernd
Sent: Monday, May 23, 2011 9:14 AM
To: virgo-dev@xxxxxxxxxxx
Subject: [virgo-dev] Cannot find H2 jars in .m2 Maven repository (was: (no subject))

Hi,

just had the same problem as described in http://dev.eclipse.org/mhonarc/lists/virgo-dev/msg00831.html. I think the problem is in the first line of h2.bat (located in %GREENPAGES_HOME%\db): instead of HOMEPATH the environment variable HOME should be used:



1c1
< for /r "%HOME%\.m2" %%X in (*h2*.jar) do (set H2CP=%H2CP%;%%X)
---
> for /r "%HOMEPATH%\.m2" %%X in (*h2*.jar) do (set H2CP=%H2CP%;%%X)

HOMEPATH was empty on my system. After that change it worked.

Regards/Viele Grüße,
Bernd

_______________________________________________
virgo-dev mailing list
virgo-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/virgo-dev