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