Martin, Spring 2.5 has climbed on top of RunWith in a big way.
Anyway, I think that the problem here isn't specfic to RunWith. For some reason I can't guess, javadoc:aaggregate is wandering into the test side of the sources without picking up the test path, so RunWith isn't in the path, and neither are any other test-specific dependencies. --benson On Sat, Aug 15, 2009 at 10:00 PM, Martin Gainty<mgai...@hotmail.com> wrote: > > RunWith is a new class in junit v 4.x > http://api.dpml.net/junit/4.2/org/junit/runner/RunWith.html > > When a class is annotated with @RunWith or extends a class annotated > with @RunWith, JUnit will invoke the class it references to run the > tests in that class instead of the runner built into JUnit. > > We added this feature late > in development. While it seems powerful we expect the runner API to change > as we learn > how people really use it. Some of the classes that are currently internal > will likely > be refined and become public. > > For example, suites in JUnit 4 are built using RunWith, and a custom runner > named Suite: > > > �...@runwith(Suite.class) > �...@suiteclasses(ATest.class, BTest.class, CTest.class) > public class ABCSuite { > } > http://junit.org/apidocs/org/junit/runner/RunWith.html make sure your > implementing junit 4.x junit-report-plugin > makesure aforementioned classes are on CLASSPATH > > BTW the eu site is live > http://www.eu.apache.org/dist/java-repository/maven/plugins/maven-junit-report-plugin-1.5.1.jar > > the american sites appear to be down > ? > Martin Gainty > ______________________________________________ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Sat, 15 Aug 2009 20:25:20 -0400 >> Subject: explosion running javadoc in site:site >> From: bimargul...@gmail.com >> To: users@maven.apache.org >> >> Running site:site, I get the following. Running javadoc:javadoc works fine. >> >> 1 error >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD ERROR >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Error during page generation >> >> Embedded error: Error rendering Maven report: Exit code: 1 - javadoc: >> error - In doclet class com.sun.tools.doclets.standard.Standard, >> method start has thrown an exception >> java.lang.reflect.InvocationTargetException >> java.lang.AssertionError: cannot find method org.junit.runner.RunWith.value() >> at >> com.sun.tools.javac.jvm.ClassReader$AnnotationDeproxy.findAccessMethod(ClassReader.java:1074) >> at >> com.sun.tools.javac.jvm.ClassReader$AnnotationDeproxy.deproxyCompound(ClassReader.java:1057) >> at >> com.sun.tools.javac.jvm.ClassReader$AnnotationDeproxy.deproxyCompoundList(ClassReader.java:1046) >> at >> com.sun.tools.javac.jvm.ClassReader$AnnotationCompleter.enterAnnotation(ClassReader.java:1195) >> at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:94) >> at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1541) >> at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355) >> at >> com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:612) >> at com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:550) >> at com.sun.tools.javadoc.ClassDocImpl.getFlags(ClassDocImpl.java:105) >> at >> com.sun.tools.javadoc.ClassDocImpl.isAnnotationType(ClassDocImpl.java:116) >> at com.sun.tools.javadoc.DocEnv.isAnnotationType(DocEnv.java:574) >> at com.sun.tools.javadoc.DocEnv.getClassDoc(DocEnv.java:546) >> at >> com.sun.tools.javadoc.PackageDocImpl.getClasses(PackageDocImpl.java:152) >> at >> com.sun.tools.javadoc.PackageDocImpl.addAllClassesTo(PackageDocImpl.java:168) >> at com.sun.tools.javadoc.RootDocImpl.classes(RootDocImpl.java:178) >> at >> com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:96) >> at >> com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64) >> at >> com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42) >> at com.sun.tools.doclets.standard.Standard.start(Standard.java:23) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269) >> at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143) >> at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340) >> at com.sun.tools.javadoc.Start.begin(Start.java:128) >> at com.sun.tools.javadoc.Main.execute(Main.java:41) >> at com.sun.tools.javadoc.Main.main(Main.java:31) >> >> Command line >> was:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/javadoc >> @options @packages >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] For more information, run Maven with the -e switch >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 15 seconds >> [INFO] Finished at: Sat Aug 15 20:22:22 EDT 2009 >> [INFO] Final Memory: 37M/67M >> [INFO] >> ------------------------------------------------------------------------ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> > > _________________________________________________________________ > Get free photo software from Windows Live > http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org