Tried again, got the right ant-optional. Current maven wouldn't build (test failure, I think), but that's ok. Got MAVEN_1_0_B10, the build ended with a "BUILD SUCCESSFUL." Careful persual of the log revealed that there was an OutOfMemory error resulting in a "BUILD FAILURE" earlier in the build. But maven still built and installed, which I thought was odd. So I rebuilt with "set MAVEN_OPTS=-Xmx512m," and got no errors. Yay!
So, questions: 1) Why the corrupt dependency? How do I prevent this in the future? It seems like once you have a broken jar in your local repository, you're screwed. Also seems like if you have two projects getting the "same" dependency from different sites, it will only get the first one. Could be wrong here, love to know. 2) How does a compilation error and a failed build result in a successful build? I can paste the log, but it's rather long. 3) Does it seem odd to anyone else that compilation occurs under a "clean-maven-home" task? -----Original Message----- From: Horn, Cameron Sent: Wednesday, November 05, 2003 7:22 PM To: Maven Users List Subject: RE: Building Maven AHA! The file "ant-optional-1.5.3-1.jar" is corrupt, every single time I download it. Why didn't I check this before... Cleared out my "~/.maven" again just to be sure. Still corrupt. -----Original Message----- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 7:08 PM To: 'Maven Users List' Subject: RE: Building Maven Sounds weird. I have WinXP, JDK 1.4.2, Ant 1.5.3-1, no CLASSPATH, no problems :) Any other environment settings that might be influencing? PATH, MAVEN_HOME, ANT_HOME, JAVA_HOME. Your ant installation was unmodified? I do run it on cygwin, maybe that's a difference... > -----Original Message----- > From: Horn, Cameron [mailto:[EMAIL PROTECTED] > Sent: Thursday, 6 November 2003 10:59 AM > To: Maven Users List > Subject: RE: Building Maven > > > 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] > --------------------------------------------------------------------- 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]
