(another resend...)
In your "real" one, you aren't configuring Surefire at all.

You need to copy the configuration (the <plugins><plugin>... node for
Surefire) into your "real" pom, and try again.

Wayne

On 8/14/07, Philip S. Constantinou <[EMAIL PROTECTED]> wrote:
> Thanks so much... I'll attach two. One stripped down one that seems like
> a cut and paste from the documentation at:
> http://testng.org/doc/maven.html
>
> I've also attached my real one.
>
>
> Cheers -
> Phil
>
>
> Wayne Fay wrote:
> > (Let's try this again... sent this response 2hrs ago and it bounced
> > due to DNS problems...)
> >
> > Maven plus TestNG has been and continues to be a source of difficulty.
> > Only specific versions of Surefire (Snapshots, iirc) and TestNG will
> > work together.
> >
> > Send us your pom for further review, and the URL with the instructions
> > you followed to construct your pom etc.
> >
> > Wayne
> >
> > On 8/14/07, Philip S. Constantinou <[EMAIL PROTECTED]> wrote:
> >
> >> Hi folks -
> >>
> >> I'm getting an exception running the "test" goal. I'm using testNG
> >> following all the instructions (hopefully correctly) both on the Maven2
> >> site and testNG maven site. Google hasn't turned up anything useful so I
> >> figured I'd turn to the experts.
> >>
> >> I've run both on Linux and Windows using Java 6.
> >> The Tests and Classes compile fine.
> >>
> >> Any help would be greatly appreciated.
> >>
> >> Regards -
> >> Phil
> >>
> >>
> >> Stack trace follows:
> >>
> >> [INFO] Trace
> >> java.lang.IllegalArgumentException
> >>        at java.lang.ProcessImpl.<init>(ProcessImpl.java:69)
> >>        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
> >>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
> >>        at java.lang.Runtime.exec(Runtime.java:591)
> >>        at
> >> org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:653)
> >>        at
> >> org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:102)
> >>        at
> >> org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:89)
> >>        at
> >> org.apache.maven.surefire.booter.SurefireBooter.fork(SurefireBooter.java:591)
> >>        at
> >> org.apache.maven.surefire.booter.SurefireBooter.forkSuites(SurefireBoooter.java:422)
> >>        at
> >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesForkOnce(SurefireBooter.java:322)
> >>        at
> >> org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:212)
> >>        at
> >> org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:397)
> >>        at
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> >>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> >>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> >>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> >>        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
> >> 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)
> >>
> >> ---------------------------------------------------------------------
> >> 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]
> >
> >
>
> --
> Philip S. Constantinou
> Associate CIO, Systems Development and Data Management Services
> Information Resources and Technology (IRT)
> Stanford University, School of Medicine
> http://med.stanford.edu/irt/development
>
> t: 650-766-0645
> f: 650-725-4415
> e: [EMAIL PROTECTED]
> Calendar: Use SunDial to schedule meetings
>
>
> ---------------------------------------------------------------------
> 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