Well, I figured out why ant wasn't picking up junit; it apparently needs to be in 
"lib/optional", not "lib" as specified by ant's manual.

However, no dice with ant-1.5.3-1.  I get the same error.  I'm on WinXP, using Sun's 
JDK 1.4.1_02.  I do not have a CLASSPATH set.

-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 4:29 PM
To: 'Maven Users List'
Subject: RE: Building Maven


This is just a wild guess, but it might be a conflict between ant-1.5.4
being run, and Maven trying to use ant-1.5.3-1 (+optional). I can't think of
anything more at this point.

Incidentally, I've never had a problem bootstrapping with ant-1.5.3-1
without modifying the ant installation/classpath at all on windows, linux
and Solaris.

Cheers,
Brett

> -----Original Message-----
> From: Horn, Cameron [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 6 November 2003 3:51 AM
> To: [EMAIL PROTECTED]
> Subject: Building Maven
> 
> 
> I'm building with ant1.5.4, with optional.jar containing the 
> junit taskdefs, including FormatterElement$TypeAttribute. 
> (Had to add junit.jar to the CLASSPATH when building ant, 
> rather than just sticking it in ant\lib as the documentation claimed).
> 
> The clean-maven-home task fails as follows.  This occurs even 
> with optional.jar manually added to the CLASSPATH, on current 
> maven and MAVEN_1_0_B10.  What am I doing wrong?
> 
> clean-maven-home:
>    [delete] Deleting directory C:\blah\jbuild\mavhome\bin
>     [mkdir] Created dir: C:\blah\jbuild\mavhome\bin
>    [delete] Deleting directory C:\blah\jbuild\mavhome\lib
>     [mkdir] Created dir: C:\blah\jbuild\mavhome\lib
>    [delete] Deleting directory C:\blah\jbuild\mavhome\plugins
>     [mkdir] Created dir: C:\blah\jbuild\mavhome\plugins
>      [copy] Copying 32 files to C:\blah\jbuild\mavhome
>      [copy] Copying 68 files to C:\Documents and Settings\hornc\.maven
>      [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] java.lang.reflect.InvocationTargetException
>      [exec]   at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [exec]   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
>      [exec]   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>      [exec]   at java.lang.reflect.Method.invoke(Method.java:324)
>      [exec]   at com.werken.forehead.Forehead.run(Forehead.java:551)
>      [exec]   at com.werken.forehead.Forehead.main(Forehead.java:581)
>      [exec] Caused by: java.lang.NoClassDefFoundError: 
> org/apache/tools/ant/taskdefs/optional/junit/FormatterElement$
> TypeAttribute
>      [exec]   at 
> org.apache.commons.jelly.tags.ant.AntTagLibrary.<clinit>(AntTa
> gLibrary.java:120)
>      [exec]   at 
> org.apache.maven.jelly.tags.jeez.JeezTagLibrary.<init>(JeezTag
> Library.java:32)
>      [exec]   at 
> org.apache.maven.jelly.tags.jeez.MavenJeezTagLibrary.<init>(Ma
> venJeezTagLibrary.java:73)
>      [exec]   at 
> org.apache.maven.jelly.MavenJellyContext.initializeContext(Mav
> enJellyContext.java:150)
>      [exec]   at 
> org.apache.maven.jelly.MavenJellyContext.<init>(MavenJellyCont
> ext.java:109)
>      [exec]   at 
> org.apache.maven.MavenUtils.createContext(MavenUtils.java:826)
>      [exec]   at 
> org.apache.maven.MavenUtils.createContext(MavenUtils.java:746)
>      [exec]   at 
> org.apache.maven.cli.App.initializeRootContext(App.java:363)
>      [exec]   at org.apache.maven.cli.App.initialize(App.java:294)
>      [exec]   at org.apache.maven.cli.App.doMain(App.java:469)
>      [exec]   at org.apache.maven.cli.App.main(App.java:1113)
>      [exec]   ... 6 more
>      [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 
> C:\blah\jbuild\maven\bootstrap\install-phase1\plugins
>     [mkdir] Created dir: 
> C:\blah\jbuild\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] java.lang.reflect.InvocationTargetException
>      [exec]   at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [exec]   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
>      [exec]   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>      [exec]   at java.lang.reflect.Method.invoke(Method.java:324)
>      [exec]   at com.werken.forehead.Forehead.run(Forehead.java:551)
>      [exec]   at com.werken.forehead.Forehead.main(Forehead.java:581)
>      [exec] Caused by: java.lang.NoClassDefFoundError: 
> org/apache/tools/ant/taskdefs/optional/junit/FormatterElement$
> TypeAttribute
>      [exec]   at 
> org.apache.commons.jelly.tags.ant.AntTagLibrary.<clinit>(AntTa
> gLibrary.java:120)
>      [exec]   at 
> org.apache.maven.jelly.tags.jeez.JeezTagLibrary.<init>(JeezTag
> Library.java:32)
>      [exec]   at 
> org.apache.maven.jelly.tags.jeez.MavenJeezTagLibrary.<init>(Ma
> venJeezTagLibrary.java:73)
>      [exec]   at 
> org.apache.maven.jelly.MavenJellyContext.initializeContext(Mav
> enJellyContext.java:150)
>      [exec]   at 
> org.apache.maven.jelly.MavenJellyContext.<init>(MavenJellyCont
> ext.java:109)
>      [exec]   at 
> org.apache.maven.MavenUtils.createContext(MavenUtils.java:826)
>      [exec]   at 
> org.apache.maven.MavenUtils.createContext(MavenUtils.java:746)
>      [exec]   at 
> org.apache.maven.cli.App.initializeRootContext(App.java:363)
>      [exec]   at org.apache.maven.cli.App.initialize(App.java:294)
>      [exec]   at org.apache.maven.cli.App.doMain(App.java:469)
>      [exec]   at org.apache.maven.cli.App.main(App.java:1113)
>      [exec]   ... 6 more
> 
> clean-maven-home:
>    [delete] Deleting directory C:\blah\jbuild\mavhome\bin
>     [mkdir] Created dir: C:\blah\jbuild\mavhome\bin
>    [delete] Deleting directory C:\blah\jbuild\mavhome\lib
>     [mkdir] Created dir: C:\blah\jbuild\mavhome\lib
>    [delete] Deleting directory C:\blah\jbuild\mavhome\plugins
>     [mkdir] Created dir: C:\blah\jbuild\mavhome\plugins
>    [delete] Deleting directory C:\Documents and 
> Settings\hornc\.maven\plugins
> 
> BUILD FAILED
> file:C:/blah/jbuild/maven/build-bootstrap-core.xml:340: 
> Warning: Could not find file 
> C:\blah\jbuild\maven\target\maven.jar to copy.
> 
> Total time: 14 seconds
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to