WinXP system variable hell
For various reasons I was testing the newest beta release of maven : 1.1-beta1 on a windows XP machine using a non administrative account.
There was a previous installation of maven (1.0.2) on it. With the proper system envirnoment variable :
MAVEN_HOME= c:toolsmaven-1.0.2 PATH=.../...;%MAVEN_HOME%/bin
So the PATH one is somehow calculated upon the value of the MAVEN_HOME… Well I thouth that changing MAVEN_HOME dynamically (ie : set MAVEN_HOME=blabla) should do the trick …erm… I was far from it. Even if you change the MAVEN_HOME via the admin account (even after having unlogged from the normal account, ie by not using the switch user feature) the PATH variable will not be updated until you actually reboot the machine… I tried different combinations until realizing this…
Well anyway the good news is that JTGE is running fine with no changes to any maven conf files or properties under maven 1.1 !!
On the other hand, maven 2-alpha 2 is another story. I’m going to wait at least Wednesday when alpha3 will be out.
Leave a comment