It's not that - the problem is that maven.bat tries to execute the first FIND command that it finds within its path. Usually most users who install cygwin add the cygwin bin directory to the windows path which results in maven.bat trying to use the GNU find command rather than the intended %SYSTEMROOT%\system32\find.exe. In theory using %SYSTEMROOT%\system32\find.exe will fix this but I'm not sure it'll work on win95/win98.
Anyway, as Peter stated in a later email, my patch for build-bootstrap.xml fixes this so hopefully this won't come up again. Regards, Tom > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:dion@;multitask.com.au] > Sent: 28 October 2002 12:36 > To: Turbine Maven Developers List > Subject: Re: I can't build maven.... > > > Have you set MAVEN_HOME? > -- > dIon Gillard, Multitask Consulting > Work: http://www.multitask.com.au > Developers: http://adslgateway.multitask.com.au/developers > > > "Peter Lynch" <[EMAIL PROTECTED]> wrote on 28/10/2002 > 08:42:40 PM: > > > Windows freaks, > > > > I have been getting this for a a while now everytime I go back to > > hacking maven, > > I get whacked by this again and again: > > > > Here is my entire build output... > > > > -------------------------------------------- > > > > ant -f build-bootstrap.xml > > Buildfile: build-bootstrap.xml > > > > check-maven-home: > > > > check-maven-repo-local: > > > > check-properties: > > > > bootstrap-compile: > > [delete] Deleting directory > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine-maven\bootstrap > > [mkdir] Created dir: > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\bootstrap-class > > es > > [javac] Compiling 4 source files to > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\bootstrap-class > > es > > > > bootstrap: > > [echo] > > [echo] > > +------------------------------------------------------------------+ > > [echo] | | > > [echo] | L O A D I N G B O O T S T R A P T A S K D E F | > > [echo] | | > > [echo] > > +------------------------------------------------------------------+ > > [echo] > > [echo] > > +------------------------------------------------------------------+ > > [echo] | | > > [echo] | R U N N I N G B O O T S T R A P T A S K | > > [echo] | | > > [echo] > > +------------------------------------------------------------------+ > > [bootstrap] Getting: > > > http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly- > SNAPSHOT.jar > > [bootstrap] Writing > > > G:\cygwin\app\maven\repo\commons-jelly\jars\commons-jelly-SNAPSHOT.jar > > [bootstrap] ................... > > [bootstrap] Getting: > > http://www.ibiblio.org/maven/werkz/jars/werkz-1.0-beta-4.jar > > [bootstrap] Writing > G:\cygwin\app\maven\repo\werkz\jars\werkz-1.0-beta-4.jar > > [bootstrap] .. > > [echo] > > [echo] > > +------------------------------------------------------------------+ > > [echo] | | > > [echo] | C O M P I L I N G M A V E N S O U R C E S > U S I N GA N > T | > > [echo] | | > > [echo] > > +------------------------------------------------------------------+ > > [mkdir] Created dir: > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\phase1-classes > > [javac] Compiling 58 source files to > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\phase1-classes > > > > [javac] Issued 1 semantic warning compiling > > "G:/cygwin/home/plynch/dev/apache/jakarta-turbine- > > maven/src/java/org/apache/mave > > n/ant/MavenTask.java": > > > > [javac] 215. catch (Exception e) > > [javac] <---------> > > [javac] *** Caution: This try block cannot throw a "checked > > exception" (JLS > > section 14.7) that can be caught here. You may have > intended to catch a > > RuntimeException instead of an Exception. > > [copy] Copying 1 file to > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\phase1-classes > > [echo] > > [echo] > > +------------------------------------------------------------------+ > > [echo] | | > > [echo] | C R E A T I N G M A V E N J A R W I T H A N T | > > [echo] | | > > [echo] > > +------------------------------------------------------------------+ > > [jar] Building jar: > > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine-maven\bootstr > ap\maven.jar > > [echo] > > [echo] > > +------------------------------------------------------------------+ > > [echo] | | > > [echo] | C R E A T I N G P H A S E 1 I N S T A L L | > > [echo] | | > > [echo] > > +------------------------------------------------------------------+ > > [mkdir] Created dir: > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1 > > [mkdir] Created dir: > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1\ > > bin > > [mkdir] Created dir: > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1\ > > lib > > [mkdir] Created dir: > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1\ > > plugins > > [copy] Copying 6 files to > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1\ > > bin > > [copy] Copying 25 files to > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1\ > > lib > > [copy] Copying 1 file to > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1\ > > lib > > [copy] Copying 1 file to G:\cygwin\app\maven\repo\maven\jars > > [copy] Copying 36 files to > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1\ > > plugins > > > > clean-maven-home: > > [delete] Deleting directory G:\cygwin\app\maven\home\bin > > [mkdir] Created dir: G:\cygwin\app\maven\home\bin > > [delete] Deleting directory G:\cygwin\app\maven\home\lib > > [mkdir] Created dir: G:\cygwin\app\maven\home\lib > > [delete] Deleting directory G:\cygwin\app\maven\home\plugins > > [mkdir] Created dir: G:\cygwin\app\maven\home\plugins > > [copy] Copying 68 files to G:\cygwin\app\maven\home > > [echo] > > [echo] > > +------------------------------------------------------------------+ > > [echo] | | > > [echo] | B U I L D I N G T H E R E A C T O R | > > [echo] | | > > [echo] > > +------------------------------------------------------------------+ > > [echo] > > [exec] FIND: /I: No such file or directory > > [exec] FIND: /C: No such file or directory > > [exec] ERROR: File (G:\cygwin\app\maven\home) > MAVEN_HOME not found. > > [exec] Please, set the MAVEN_HOME variable in your environment > > to match the > > [exec] location of the Maven installation > > [copy] Copying 1 file to G:\cygwin\app\maven\home\plugins > > [echo] > > [echo] > > +------------------------------------------------------------------+ > > [echo] | | > > [echo] | B U I L D I N G T H E P L U G I N S | > > [echo] | | > > [echo] > > +------------------------------------------------------------------+ > > [echo] > > [exec] FIND: /I: No such file or directory > > [exec] FIND: /C: No such file or directory > > [exec] ERROR: File (G:\cygwin\app\maven\home) > MAVEN_HOME not found. > > [exec] Please, set the MAVEN_HOME variable in your environment > > to match the > > [exec] location of the Maven installation > > [echo] > > [echo] > > +------------------------------------------------------------------+ > > [echo] | | > > [echo] | I N S T A L L I N G T H E P L U G I N S | > > [echo] | | > > [echo] > > +------------------------------------------------------------------+ > > [echo] > > [delete] Deleting directory > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1\ > > plugins > > [mkdir] Created dir: > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1\ > > plugins > > [copy] Copying 38 files to > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1\ > > plugins > > [echo] > > [echo] > > +------------------------------------------------------------------+ > > [echo] | | > > [echo] | B U I L D I N G M A V E N W I T H I T S E L F | > > [echo] | | > > [echo] > > +------------------------------------------------------------------+ > > [echo] > > [exec] FIND: /I: No such file or directory > > [exec] FIND: /C: No such file or directory > > [exec] ERROR: File (G:\cygwin\app\maven\home) > MAVEN_HOME not found. > > [exec] Please, set the MAVEN_HOME variable in your environment > > to match the > > [exec] location of the Maven installation > > > > clean-maven-home: > > [delete] Deleting directory G:\cygwin\app\maven\home\bin > > [mkdir] Created dir: G:\cygwin\app\maven\home\bin > > [delete] Deleting directory G:\cygwin\app\maven\home\lib > > [mkdir] Created dir: G:\cygwin\app\maven\home\lib > > [delete] Deleting directory G:\cygwin\app\maven\home\plugins > > [mkdir] Created dir: G:\cygwin\app\maven\home\plugins > > [copy] Copying 1 file to G:\cygwin\app\maven\repo\maven\jars > > [copy] Copying 1 file to > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1\ > > lib > > [copy] Copying 1 file to > > G:\cygwin\home\plynch\dev\apache\jakarta-turbine- > > maven\bootstrap\install-phase1 > > [copy] Copying 71 files to G:\cygwin\app\maven\home > > > > BUILD SUCCESSFUL > > Total time: 27 s > > > > > > --------------------- > > > > Notice the > > > > [exec] FIND: /I: No such file or directory > > [exec] FIND: /C: No such file or directory > > [exec] ERROR: File (G:\cygwin\app\maven\home) > MAVEN_HOME not found. > > [exec] Please, set the MAVEN_HOME variable in your environment > > to match the > > [exec] location of the Maven installation > > > > stuff? > > > > > > > > > > It's in maven.bat added as a patch a while back. > > > > REM -- Look for MAVEN_HOME, and make sure it exists > > if "%MAVEN_HOME%" == "" goto ErrNoEnv > > DIR "%MAVEN_HOME%" /AD | FIND /I /C "%MAVEN_HOME%" > nul > > IF errorlevel 1 goto ErrNoDir > > > > I'm using Windows 2000 Server. > > > > I tried to fix it using similar notation but couldn't find something > > to be happy > > with. I even followed Microsoft's suggested approach to > finding a dir > but no > > luck I can't believe the other windows builders out there > are not having > this > > problem. > > > > Any ideas people? If not I would like to remove what it is doing. ( > > checking to > > see if maven home exists...) > > > > -Peter > > > > > > -- > > To unsubscribe, e-mail: <mailto:turbine-maven-dev- > > [EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:turbine-maven-dev- > > [EMAIL PROTECTED]> > > > > > ForwardSourceID:NT0008779A > > -- > To unsubscribe, e-mail: > <mailto:turbine-maven-dev-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: > <mailto:turbine-maven-dev-help@;jakarta.apache.org> > -- To unsubscribe, e-mail: <mailto:turbine-maven-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:turbine-maven-dev-help@;jakarta.apache.org>
