You have this back to front.

When you run tests, that runs the maven-surefire-plugin (v2.1.1). This
uses the surefire library v1.5.1. This is the latest release:
http://svn.apache.org/viewcvs.cgi/maven/surefire/tags/

It is only 2 weeks old, and there has only been one fix since that
release (MSUREFIRE-20).

If you still have a problem with this release, please file it in JIRA,
but check that it is not first recorded there.

- Brett

On 12/28/05, Man-Chi Leung <[EMAIL PROTECTED]> wrote:
> hi Brett,
>
> thanks for your advice. but it seems that the current release ver of
> Surefire is pretty old (1.5) which is causing a xml validation
> problem on surefire-report.
>
> [INFO] Generate "Maven Surefire Report" report.java.lang.Exception:
> Failure to parse file at: ~/myproject/my-app/target/surefire-reports/
> TEST-com.mycompany.app.AppTest.xml at
> org.codehaus.mojo.surefire.ReportTestSuite.<init>
>
> to my understanding, Maven 2.0.1 is preconfigured with surefire-booter
> (1.5),  which calls surefire plugin(1.5)
>
> so I go ahead to get surefire ver 2.1.1 from 'svn checkout http://
> svn.apache.org/repos/asf/maven/components/tags/maven-surefire-
> plugin-2.1 maven-surefire-plugin-2.1'
>
> after 'mvn install' (2.1)
>
> how can I config surefire booter(1.5) to run surefire plugin(2.1) then?
>
> pls advice
>
> ~manchi
>
>
> On Dec 28, 2005, at 11:12 AM, Brett Porter wrote:
>
> > This is just a little bit of confusion.
> >
> > The Maven surefire plugin (version 2.1) uses version 1.5 of surefire
> > and surefire-booter. So it all sounds correct.
> >
> > Users should only ever need to use -U to update plugins, not build
> > anything from source. Likewise, -DupdateReleaseInfo is completely
> > unnecessary for plugins in 2.0+ of Maven.
> >
> > - Brett
> >
> > On 12/28/05, Nik Gonzalez <[EMAIL PROTECTED]> wrote:
> >> Man-Chi Leung,
> >>
> >> Build the maven-surefire-plugin-2.1 that you checked out again but
> >> this
> >> time using "mvn install -DupdateReleaseInfo=true.  This will
> >> update your
> >> plugin registry and the next time you call on this plugin, maven will
> >> use the updated version.
> >>
> >> hth,
> >>
> >> Nik
> >>
> >> Man-Chi Leung wrote:
> >>
> >>> hi,
> >>>
> >>> surefire-report-plugin 2.1 is having Failure to parse Surefire 1.5
> >>> xml file
> >>>
> >>> I used surefire-report plugin to parse surefire generated xml file
> >>> but encountered the following exception.
> >>> I checked out surefire-report jira, and got a reply that it is
> >>> due to
> >>> the invalid xml format in surefire generated TEST-
> >>> com.mycompany.app.AppTest.xml file.
> >>>
> >>> ------------------------------------
> >>> I tried the following attempt:
> >>> -------------------------------------
> >>> since surefire-plugin that bundles with m2 release is version
> >>> 1.5, in
> >>> fact, I tried to checkout the latest 2.1 from
> >>> http://svn.apache.org/repos/asf/maven/components/tags/maven-
> >>> surefire-
> >>> plugin-2.1. I did a mvn compile and install to my local .m2
> >>> repository, trying to run it again.
> >>> However, M2 , by default only depends surefire 1.5 version, NOT
> >>> running ver 2.1 . may I know how to make m2 to run surefire 2.1
> >>> instead? pls help
> >>> btw, the surefire report 2.1 DOES generate correct, just that there
> >>> are a lot of exception as the followings!
> >>>
> >>> -------------------
> >>> ERROR MSG:
> >>> -------------------
> >>> [INFO] Generate "Maven Surefire Report" report.
> >>> java.lang.Exception: Failure to parse file at: ~/myproject/my-app/
> >>> target/surefire-reports/TEST-com.mycompany.app.AppTest.xml
> >>> at org.codehaus.mojo.surefire.ReportTestSuite.<init>
> >>> (ReportTestSuite.java:68)
> >>> at
> >>> org.codehaus.mojo.surefire.SurefireReportParser.parseXMLReportFiles
> >>> (SurefireReportParser.java:49)
> >>> at
> >>> org.codehaus.mojo.surefire.SurefireReportGenerator.doGenerateReport
> >>> (SurefireReportGenerator.java:44)
> >>> at org.codehaus.mojo.surefire.SurefireReportMojo.executeReport
> >>> (SurefireReportMojo.java:77)
> >>> at org.apache.maven.reporting.AbstractMavenReport.generate
> >>> (AbstractMavenReport.java:98)
> >>> at org.apache.maven.plugins.site.SiteMojo.generateReportsPages
> >>> (SiteMojo.java:802)
> >>> at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
> >>> at org.apache.maven.plugin.DefaultPluginManager.executeMojo
> >>> (DefaultPluginManager.java:432)
> >>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> >>> (DefaultLifecycleExecutor.java:530)
> >>> at
> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL
> >>> ifec
> >>> ycle(DefaultLifecycleExecutor.java:472)
> >>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> >>> (DefaultLifecycleExecutor.java:451)
> >>> at
> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
> >>> ndle
> >>> Failures(DefaultLifecycleExecutor.java:303)
> >>> at
> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
> >>> nts(
> >>> DefaultLifecycleExecutor.java:270)
> >>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> >>> (DefaultLifecycleExecutor.java:139)
> >>> 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:249)
> >>> 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:324)
> >>> 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)
> >>> Caused by: org.xml.sax.SAXParseException: Whitespace required before
> >>> attributes.
> >>> at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)
> >>> at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3364)
> >>> at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1556)
> >>> at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
> >>> at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
> >>> at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
> >>> at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
> >>> at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
> >>> at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
> >>> at org.apache.crimson.parser.XMLReaderImpl.parse
> >>> (XMLReaderImpl.java:448)
> >>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> >>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:281)
> >>> at org.codehaus.mojo.surefire.ReportTestSuite.<init>
> >>> (ReportTestSuite.java:64)
> >>> ... 24 more
> >>>
> >>> --------------------------------------------------------------------
> >>> -
> >>> 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]
>
>

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

Reply via email to