Skip to main content

[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))

HI,
  I have resolved that problem some days ago.What my method is to modify the configuration of h2.bat.Just like this:

set H2CP=C:\Users\duanqi\.m2\repository\com\h2database\com.springsource.org.h2\1.0.71\com.springsource.org.h2-1.0.71.jar

rem for /r "%HOMEPATH%\.m2" %%X in (*h2*.jar) do (set H2CP=%H2CP%;%%X)

if "%H2CP%" == "" (goto h2NotFound) else goto end

:h2NotFound
echo Cannot find H2 jars in .m2 Maven repository
exit /b -1s

:end

All your need is let the H2CP point to  com.springsource.org.h2-1.0.71.jar.

Regards,
DuanQi

PS: My system is Windows7.

2011/5/23 Hofmann, Bernd <bernd.hofmann@xxxxxxx>
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
_______________________________________________
virgo-dev mailing list
virgo-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/virgo-dev


Back to the top