I just tried installing maven on my home Windows98 box and hit problems. The
install_repo.bat script assumes that it can create multiple levels of
directories in one mkdir command. This doesn't work on my box.

Attached is the altered file that does work (renamed to txt to ensure it
gets through filters).


Unfortunately, the maven.bat file is still not runing, with a 'bad command
or file name'. Which is very strange as its definitely there...

Stephen
@ECHO OFF
if "%1"=="" goto usage
set REPO_DIR=%1
if "%MAVEN_HOME%"=="" goto MHusage
if not exist %REPO_DIR% mkdir %REPO_DIR%
if not exist %REPO_DIR%\dom4j mkdir %REPO_DIR%\dom4j
if not exist %REPO_DIR%\dom4j\jars mkdir %REPO_DIR%\dom4j\jars
if not exist "%REPO_DIR%\dom4j\jars\dom4j-1.4-dev-8.jar" copy 
"%MAVEN_HOME%\lib\dom4j-1.4-dev-8.jar" "%REPO_DIR%\dom4j\jars\dom4j-1.4-dev-8.jar"
if not exist %REPO_DIR%\ant mkdir %REPO_DIR%\ant
if not exist %REPO_DIR%\ant\jars mkdir %REPO_DIR%\ant\jars
if not exist "%REPO_DIR%\ant\jars\ant-1.5.3-1.jar" copy 
"%MAVEN_HOME%\lib\ant-1.5.3-1.jar" "%REPO_DIR%\ant\jars\ant-1.5.3-1.jar"
if not exist "%REPO_DIR%\ant\jars\ant-optional-1.5.3-1.jar" copy 
"%MAVEN_HOME%\lib\ant-optional-1.5.3-1.jar" 
"%REPO_DIR%\ant\jars\ant-optional-1.5.3-1.jar"
if not exist %REPO_DIR%\commons-betwixt mkdir %REPO_DIR%\commons-betwixt
if not exist %REPO_DIR%\commons-betwixt\jars mkdir %REPO_DIR%\commons-betwixt\jars
if not exist 
"%REPO_DIR%\commons-betwixt\jars\commons-betwixt-1.0-beta-1.20030111.103454.jar" copy 
"%MAVEN_HOME%\lib\commons-betwixt-1.0-beta-1.20030111.103454.jar" 
"%REPO_DIR%\commons-betwixt\jars\commons-betwixt-1.0-beta-1.20030111.103454.jar"
if not exist %REPO_DIR%\commons-digester mkdir %REPO_DIR%\commons-digester
if not exist %REPO_DIR%\commons-digester\jars mkdir %REPO_DIR%\commons-digester\jars
if not exist "%REPO_DIR%\commons-digester\jars\commons-digester-1.4.1.jar" copy 
"%MAVEN_HOME%\lib\commons-digester-1.4.1.jar" 
"%REPO_DIR%\commons-digester\jars\commons-digester-1.4.1.jar"
if not exist %REPO_DIR%\commons-jelly mkdir %REPO_DIR%\commons-jelly
if not exist %REPO_DIR%\commons-jelly\jars mkdir %REPO_DIR%\commons-jelly\jars
if not exist "%REPO_DIR%\commons-jelly\jars\commons-jelly-20030902.160215.jar" copy 
"%MAVEN_HOME%\lib\commons-jelly-20030902.160215.jar" 
"%REPO_DIR%\commons-jelly\jars\commons-jelly-20030902.160215.jar"
if not exist 
"%REPO_DIR%\commons-jelly\jars\commons-jelly-tags-ant-20030625.032346.jar" copy 
"%MAVEN_HOME%\lib\commons-jelly-tags-ant-20030625.032346.jar" 
"%REPO_DIR%\commons-jelly\jars\commons-jelly-tags-ant-20030625.032346.jar"
if not exist 
"%REPO_DIR%\commons-jelly\jars\commons-jelly-tags-define-20030211.142932.jar" copy 
"%MAVEN_HOME%\lib\commons-jelly-tags-define-20030211.142932.jar" 
"%REPO_DIR%\commons-jelly\jars\commons-jelly-tags-define-20030211.142932.jar"
if not exist 
"%REPO_DIR%\commons-jelly\jars\commons-jelly-tags-util-20030211.141939.jar" copy 
"%MAVEN_HOME%\lib\commons-jelly-tags-util-20030211.141939.jar" 
"%REPO_DIR%\commons-jelly\jars\commons-jelly-tags-util-20030211.141939.jar"
if not exist %REPO_DIR%\commons-graph mkdir %REPO_DIR%\commons-graph
if not exist %REPO_DIR%\commons-graph\jars mkdir %REPO_DIR%\commons-graph\jars
if not exist "%REPO_DIR%\commons-graph\jars\commons-graph-0.8.1.jar" copy 
"%MAVEN_HOME%\lib\commons-graph-0.8.1.jar" 
"%REPO_DIR%\commons-graph\jars\commons-graph-0.8.1.jar"
if not exist %REPO_DIR%\commons-jexl mkdir %REPO_DIR%\commons-jexl
if not exist %REPO_DIR%\commons-jexl\jars mkdir %REPO_DIR%\commons-jexl\jars
if not exist "%REPO_DIR%\commons-jexl\jars\commons-jexl-1.0-beta-1.jar" copy 
"%MAVEN_HOME%\lib\commons-jexl-1.0-beta-1.jar" 
"%REPO_DIR%\commons-jexl\jars\commons-jexl-1.0-beta-1.jar"
if not exist %REPO_DIR%\commons-logging mkdir %REPO_DIR%\commons-logging
if not exist %REPO_DIR%\commons-logging\jars mkdir %REPO_DIR%\commons-logging\jars
if not exist "%REPO_DIR%\commons-logging\jars\commons-logging-1.0.1.jar" copy 
"%MAVEN_HOME%\lib\commons-logging-1.0.1.jar" 
"%REPO_DIR%\commons-logging\jars\commons-logging-1.0.1.jar"
if not exist %REPO_DIR%\werkz mkdir %REPO_DIR%\werkz
if not exist %REPO_DIR%\werkz\jars mkdir %REPO_DIR%\werkz\jars
if not exist "%REPO_DIR%\werkz\jars\werkz-1.0-beta-10.jar" copy 
"%MAVEN_HOME%\lib\werkz-1.0-beta-10.jar" "%REPO_DIR%\werkz\jars\werkz-1.0-beta-10.jar"
if not exist %REPO_DIR%\commons-beanutils mkdir %REPO_DIR%\commons-beanutils
if not exist %REPO_DIR%\commons-beanutils\jars mkdir %REPO_DIR%\commons-beanutils\jars
if not exist "%REPO_DIR%\commons-beanutils\jars\commons-beanutils-1.6.1.jar" copy 
"%MAVEN_HOME%\lib\commons-beanutils-1.6.1.jar" 
"%REPO_DIR%\commons-beanutils\jars\commons-beanutils-1.6.1.jar"
if not exist %REPO_DIR%\commons-cli mkdir %REPO_DIR%\commons-cli
if not exist %REPO_DIR%\commons-cli\jars mkdir %REPO_DIR%\commons-cli\jars
if not exist "%REPO_DIR%\commons-cli\jars\commons-cli-1.0-beta-2.jar" copy 
"%MAVEN_HOME%\lib\commons-cli-1.0-beta-2.jar" 
"%REPO_DIR%\commons-cli\jars\commons-cli-1.0-beta-2.jar"
if not exist %REPO_DIR%\commons-collections mkdir %REPO_DIR%\commons-collections
if not exist %REPO_DIR%\commons-collections\jars mkdir 
%REPO_DIR%\commons-collections\jars
if not exist "%REPO_DIR%\commons-collections\jars\commons-collections-2.1.jar" copy 
"%MAVEN_HOME%\lib\commons-collections-2.1.jar" 
"%REPO_DIR%\commons-collections\jars\commons-collections-2.1.jar"
if not exist %REPO_DIR%\commons-grant mkdir %REPO_DIR%\commons-grant
if not exist %REPO_DIR%\commons-grant\jars mkdir %REPO_DIR%\commons-grant\jars
if not exist "%REPO_DIR%\commons-grant\jars\commons-grant-1.0-beta-4.jar" copy 
"%MAVEN_HOME%\lib\commons-grant-1.0-beta-4.jar" 
"%REPO_DIR%\commons-grant\jars\commons-grant-1.0-beta-4.jar"
if not exist %REPO_DIR%\commons-io mkdir %REPO_DIR%\commons-io
if not exist %REPO_DIR%\commons-io\jars mkdir %REPO_DIR%\commons-io\jars
if not exist "%REPO_DIR%\commons-io\jars\commons-io-20030203.000550.jar" copy 
"%MAVEN_HOME%\lib\commons-io-20030203.000550.jar" 
"%REPO_DIR%\commons-io\jars\commons-io-20030203.000550.jar"
if not exist %REPO_DIR%\commons-lang mkdir %REPO_DIR%\commons-lang
if not exist %REPO_DIR%\commons-lang\jars mkdir %REPO_DIR%\commons-lang\jars
if not exist "%REPO_DIR%\commons-lang\jars\commons-lang-1.0-b1.1.jar" copy 
"%MAVEN_HOME%\lib\commons-lang-1.0-b1.1.jar" 
"%REPO_DIR%\commons-lang\jars\commons-lang-1.0-b1.1.jar"
if not exist %REPO_DIR%\forehead mkdir %REPO_DIR%\forehead
if not exist %REPO_DIR%\forehead\jars mkdir %REPO_DIR%\forehead\jars
if not exist "%REPO_DIR%\forehead\jars\forehead-1.0-beta-5.jar" copy 
"%MAVEN_HOME%\lib\forehead-1.0-beta-5.jar" 
"%REPO_DIR%\forehead\jars\forehead-1.0-beta-5.jar"
if not exist %REPO_DIR%\log4j mkdir %REPO_DIR%\log4j
if not exist %REPO_DIR%\log4j\jars mkdir %REPO_DIR%\log4j\jars
if not exist "%REPO_DIR%\log4j\jars\log4j-1.2.8.jar" copy 
"%MAVEN_HOME%\lib\log4j-1.2.8.jar" "%REPO_DIR%\log4j\jars\log4j-1.2.8.jar"
if not exist %REPO_DIR%\which mkdir %REPO_DIR%\which
if not exist %REPO_DIR%\which\jars mkdir %REPO_DIR%\which\jars
if not exist "%REPO_DIR%\which\jars\which-1.0.jar" copy 
"%MAVEN_HOME%\lib\which-1.0.jar" "%REPO_DIR%\which\jars\which-1.0.jar"
if not exist %REPO_DIR%\xml-apis mkdir %REPO_DIR%\xml-apis
if not exist %REPO_DIR%\xml-apis\jars mkdir %REPO_DIR%\xml-apis\jars
if not exist "%REPO_DIR%\xml-apis\jars\xml-apis-1.0.b2.jar" copy 
"%MAVEN_HOME%\lib\endorsed\xml-apis-1.0.b2.jar" 
"%REPO_DIR%\xml-apis\jars\xml-apis-1.0.b2.jar"
if not exist %REPO_DIR%\xerces mkdir %REPO_DIR%\xerces
if not exist %REPO_DIR%\xerces\jars mkdir %REPO_DIR%\xerces\jars
if not exist "%REPO_DIR%\xerces\jars\xerces-2.4.0.jar" copy 
"%MAVEN_HOME%\lib\endorsed\xerces-2.4.0.jar" "%REPO_DIR%\xerces\jars\xerces-2.4.0.jar"
if not exist %REPO_DIR%\xpp3 mkdir %REPO_DIR%\xpp3
if not exist %REPO_DIR%\xpp3\jars mkdir %REPO_DIR%\xpp3\jars
if not exist "%REPO_DIR%\xpp3\jars\xpp3-1.1.2a.jar" copy 
"%MAVEN_HOME%\lib\xpp3-1.1.2a.jar" "%REPO_DIR%\xpp3\jars\xpp3-1.1.2a.jar"
if not exist %REPO_DIR%\plexus mkdir %REPO_DIR%\plexus
if not exist %REPO_DIR%\plexus\jars mkdir %REPO_DIR%\plexus\jars
if not exist "%REPO_DIR%\plexus\jars\plexus-0.6.jar" copy 
"%MAVEN_HOME%\lib\plexus-0.6.jar" "%REPO_DIR%\plexus\jars\plexus-0.6.jar"
goto end
:MHusage
echo MAVEN_HOME must be set
:usage
echo usage: %0 [repository directory]
:end

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to