[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [virgo-dev] Cannot find H2 jars in .m2 Maven repository (was: (no subject))
- From: "Hofmann, Bernd" <bernd.hofmann@xxxxxxx>
- Date: Mon, 23 May 2011 09:29:58 +0200
- Accept-language: en-US
- Acceptlanguage: en-US
- Delivered-to: email@example.com
- Thread-index: AcwZGQm7AyPNxIZFQhGMCsbBL4AxsgAATZrQ
- Thread-topic: [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
PS: Or maybe this has changed on Windows7 ...
From: virgo-dev-bounces@xxxxxxxxxxx [mailto:virgo-dev-bounces@xxxxxxxxxxx] On Behalf Of Hofmann, Bernd
Sent: Monday, May 23, 2011 9:14 AM
Subject: [virgo-dev] Cannot find H2 jars in .m2 Maven repository (was: (no subject))
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:
< 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.
virgo-dev mailing list