Hello, Use Surefire Plugin instead http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-surefire-plugin/2.3-SNAPSHOT/
Damien > -----Message d'origine----- > De : Zaphod [mailto:[EMAIL PROTECTED] > Envoyé : mardi 9 janvier 2007 11:50 > À : users@maven.apache.org > Objet : Re: junit4 support added > > > > Yes of course I use this repo url. > But I searched for a "2.3-SNAPSHOT" in this repo and didn't found it. > > I suppose surefire-junit4/2.1-SNAPSHOT/ is the one you mean, isn't it? > > But when I try to use > <plugin> > > <groupId>org.apache.maven.surefire</groupId> > <artifactId>surefire-junit4</artifactId> > <version>2.1-SNAPSHOT</version> > </plugin> > I get a > java.lang.NullPointerException > at > org.apache.maven.plugin.DefaultPluginManager.addPlugin(Default > PluginManager.java:292) > at > org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPl > ugin(DefaultPluginManager.java:198) > at > org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(Defa > ultPluginManager.java:163) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlug > in(DefaultLifecycleExecutor.java:1252) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPlugin > ToLifecycle(DefaultLifecycleExecutor.java:1216) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructL > ifecycleMappings(DefaultLifecycleExecutor.java:982) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa > l(DefaultLifecycleExecutor.java:453) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa > lAndHandleFailures(DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTas > kSegments(DefaultLifecycleExecutor.java:273) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(De > faultLifecycleExecutor.java:140) > at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > If I try > <plugin> > > <groupId>org.apache.maven.surefire</groupId> > <artifactId>surefire</artifactId> > <version>2.1-SNAPSHOT</version> > </plugin> > I get this: > [...] > Downloading: > http://people.apache.org/repo/m2-snapshot-repository/org/apach e/maven/surefire/surefire/2.1-SNAPSHOT/surefire-2.1-20070108.094711-11.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. GroupId: org.apache.maven.surefire ArtifactId: surefire Version: 2.1-20070108.094711-11 Reason: Unable to locate resource in repository because there is no Jar-file inside. Tom Huybrechts wrote: > > It is. But you are pointing to the surefire directory inside that > repository. > You need to use http://people.apache.org/repo/m2-snapshot-repository/ > as repo url. > > On 1/8/07, Zaphod wrote: >> >> In which snapshot repository can I find it? >> I supposed it to be in >> http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/surefire/ >> >> >> Tom Huybrechts wrote: >> > >> > The snapshots have been deployed (maven-surefire-plugin version >> > 2.3-SNAPSHOT). >> > Read >> > >> http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html >> > for information on how to use them. > > -- View this message in context: http://www.nabble.com/junit4-support-added-tf2936023s177.html#a8235395 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]