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 G A 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\bootstrap\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-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-dev-help@;jakarta.apache.org>