You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by hujirong <ji...@gmail.com> on 2012/04/27 03:27:00 UTC

Anyone is actually use "central" repository?

Hi

I think most of company will set up its own internal repository, right? So
we should always get a settings.xml like this, while "nexus" is the id of
our internal repository:

    <mirror>
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
     
<url>http://axddarep01.npr.bngf.local:8080/nexus/content/groups/max-public/</url>
    </mirror>

However, today I see another group is using something like this, what does
this mean?

	<mirrors>
		<mirror> 
			<id>thirdparty</id> 
			<mirrorOf>central</mirrorOf>     	
		      
<url>http://axddarep01.npr.bngf.local:8080/nexus/content/repositories/thirdparty/</url>
		</mirror>
	</mirrors>

How to consolidate these two settings?

Thanks
Jirong

--
View this message in context: http://maven.40175.n5.nabble.com/Anyone-is-actually-use-central-repository-tp5669037p5669037.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven failed with error while reading test results

Posted by Alexis Morelle <Al...@alcatel-lucent.com>.
I though of that (add the problem long time ago with a pom file) but 
that's not the issue, I've tried several things 
(-Dproject.reporting.outputEncoding=UTF-8 and stuff like that).
Anyway, I've looked more closely at the file which contains tons of test 
results and some of them are a big mess of misencoded data.
I'll try to look further why would maven just stop its building process 
later on but I have to solve another issue first.

Thank you very much for your help,
Alexis.

Le 27/04/2012 17:52, Matt Walsh a écrit :
>>>> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
>>>> reports\result.xml
>>>> Invalid byte 2 of 3-byte UTF-8 sequence.
> This would lead me to believe there's a BOM (Byte-Order-Mark) error in the result.xml file.
>
> Does the surefire plugin generate BOMs??
>
>
>> -----Original Message-----
>> From: Alexis Morelle [mailto:Alexis.Morelle@alcatel-lucent.com]
>> Sent: Friday, April 27, 2012 9:42 AM
>> To: Maven Users List
>> Subject: Re: Maven failed with error while reading test results
>>
>> The thing is that if I add -fn for example (never fail), the build ends
>> successfully.
>> Anyway I just saw something even more strange with the following log.
>>
>> It says: [INFO] Error for project: CMS - XML Engine Implementation
>> (during install)
>> But then: [INFO] Internal error in the plugin manager executing goal
>> 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test
>>
>> see this log with the -fn option.
>>
>> [ERROR] There are test failures.
>>
>> Please refer to
>> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
>> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-reports
>> for the individual test results.
>> [JENKINS] Recording test results
>> [JENKINS] Archiving
>> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
>> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\pom.xml
>> to
>> /opt/jenkins/projects/jobs/OT_1.2-OAMP-CMS-
>> Deploy_All_Inc15mn/modules/com.alcatel_lucent.ice.oamp.cms.xmlengine$cm
>> s-xmlengine/builds/2012-04-27_17-14-
>> 12/archive/com.alcatel_lucent.ice.oamp.cms.xmlengine/cms-
>> xmlengine/2.1.020.000-SNAPSHOT/cms-xmlengine-2.1.020.000-SNAPSHOT.pom
>> [INFO] Error for project: CMS - XML Engine Implementation (during
>> install)
>> [INFO]
>> -----------------------------------------------------------------------
>> -
>> [INFO] Internal error in the plugin manager executing goal
>> 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
>> read
>> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
>> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
>> reports\result.xml
>> Invalid byte 2 of 3-byte UTF-8 sequence.
>> [INFO]
>> -----------------------------------------------------------------------
>> -
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> -----------------------------------------------------------------------
>> -
>> [INFO]  + Ignoring failures
>> [INFO]
>> -----------------------------------------------------------------------
>> -
>> [INFO] BUILD SUCCESSFUL
>> [INFO]
>> -----------------------------------------------------------------------
>> -
>> [INFO] Total time: 30 seconds
>> [INFO] Finished at: Fri Apr 27 17:14:44 CEST 2012
>> [INFO] Final Memory: 72M/371M
>> [INFO]
>> -----------------------------------------------------------------------
>> -
>> Waiting for Jenkins to finish collecting data
>> Finished: SUCCESS
>>
>>
>> thx very much
>> Alexis.
>>
>> Le 27/04/2012 17:26, Matt Walsh a écrit :
>>> Doesn't look like maven failed. Your tests failed, which caused your
>>> build to fail, then Jenkins failed looking for results.
>>>
>>> Maybe you've configured your Jenkins build to do it's post processing
>>> even on failure?
>>>
>>> Matt
>>>
>>>> -----Original Message-----
>>>> From: Alexis Morelle [mailto:Alexis.Morelle@alcatel-lucent.com]
>>>> Sent: Friday, April 27, 2012 9:22 AM
>>>> To: users@maven.apache.org
>>>> Subject: Maven failed with error while reading test results
>>>>
>>>> Hi,
>>>>
>>>> I have this weird error that keep coming up after a simple "mvn
>> clean
>>>> install".
>>>> Maven goes out on this error while reading test results and never
>> goes
>>>> to the package, install etc goal...
>>>>
>>>> Would you guys know what this could come from?
>>>>
>>>> Thank you very much for your help,
>>>> Alexis.
>>>>
>>>>
>>>> Tests run: 311, Failures: 4, Errors: 0, Skipped: 0
>>>>
>>>> [ERROR] There are test failures.
>>>>
>>>> Please refer to
>>>> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
>>>> reports for
>>>> the individual test results.
>>>> [JENKINS] Recording test results
>>>> [JENKINS] Archiving
>>>> D:\Jenkins-slave\workspace\<jobname>\<modulename>\pom.xml to
>>>>
>> /opt/jenkins/projects/jobs/<jobname>/modules/<gpId>$<artId>/builds/2012
>>>> -04-27_16-16-40/archive/<gpId>/<artId>/2.1.020.000-SNAPSHOT/cms-
>>>> xmlengine-2.1.020.000-SNAPSHOT.pom
>>>> [INFO]
>>>>
>>> ---------------------------------------------------------------------
>> --
>>>> -
>>>> [ERROR] BUILD ERROR
>>>> [INFO]
>>>>
>>> ---------------------------------------------------------------------
>> --
>>>> -
>>>> [INFO] Internal error in the plugin manager executing goal
>>>> 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
>>>> read
>>>> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
>>>> reports\result.xml
>>>> Invalid byte 2 of 3-byte UTF-8 sequence.
>>>> [INFO]
>>>>
>>> ---------------------------------------------------------------------
>> --
>>>> -
>>>> [DEBUG] Trace
>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Internal
>> error
>>>> in the plugin manager executing goal
>>>> 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
>>>> read
>>>> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
>>>> reports\result.xml
>>>>        at
>>>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
>>>> tLifecycleExecutor.java:698)
>>>>        at
>>>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLife
>>>> cycle(DefaultLifecycleExecutor.java:556)
>>>>        at
>>>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Default
>>>> LifecycleExecutor.java:535)
>>>>        at
>>>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandl
>>>> eFailures(DefaultLifecycleExecutor.java:387)
>>>>        at
>>>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
>>>> (DefaultLifecycleExecutor.java:348)
>>>>        at
>>>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
>>>> cycleExecutor.java:180)
>>>>        at
>>>>
>> org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(Lifecyc
>>>> leExecutorInterceptor.java:65)
>>>>        at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>>        at
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>        at
>>>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>>>> va:39)
>>>>        at
>>>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>>>> rImpl.java:25)
>>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>>        at
>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>        at hudson.maven.agent.Main.launch(Main.java:185)
>>>>        at hudson.maven.MavenBuilder.call(MavenBuilder.java:151)
>>>>        at hudson.maven.Maven2Builder.call(Maven2Builder.java:77)
>>>>        at hudson.maven.Maven2Builder.call(Maven2Builder.java:53)
>>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:118)
>>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>>>        at hudson.remoting.Request$2.run(Request.java:287)
>>>>        at
>>>>
>> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutor
>>>> Service.java:72)
>>>>        at
>>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>>>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>>        at
>>>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecut
>>>> or.java:886)
>>>>        at
>>>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j
>>>> ava:908)
>>>>        at java.lang.Thread.run(Thread.java:662)
>>>> Caused by: org.apache.maven.plugin.PluginManagerException: Failed to
>>>> read
>>>> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
>>>> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
>>>> reports\result.xml
>>>>        at
>>>>
>> hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerIn
>>>> terceptor.java:196)
>>>>        at
>>>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
>>>> tLifecycleExecutor.java:694)
>>>>        ... 28 more
>>>> Caused by: hudson.util.IOException2: Failed to read
>>>> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
>>>> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
>>>> reports\result.xml
>>>>        at hudson.tasks.junit.TestResult.parse(TestResult.java:244)
>>>>        at hudson.tasks.junit.TestResult.parse(TestResult.java:163)
>>>>        at
>>>>
>> hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.ja
>>>> va:141)
>>>>        at
>> hudson.maven.Maven2Builder.postExecute(Maven2Builder.java:155)
>>>>        at
>>>> hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:310)
>>>>        at
>>>>
>> hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPo
>>>> st(PluginManagerInterceptor.java:170)
>>>>        at
>>>>
>> hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerIn
>>>> terceptor.java:183)
>>>>        ... 29 more
>>>> Caused by: org.dom4j.DocumentException: Invalid byte 2 of 3-byte
>> UTF-8
>>>> sequence. Nested exception: Invalid byte 2 of 3-byte UTF-8 sequence.
>>>>        at org.dom4j.io.SAXReader.read(SAXReader.java:484)
>>>>        at org.dom4j.io.SAXReader.read(SAXReader.java:264)
>>>>        at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:112)
>>>>        at hudson.tasks.junit.TestResult.parse(TestResult.java:227)
>>>>        ... 35 more
>>>> Caused by:
>>>>
>> com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceExcepti
>>>> on:
>>>> Invalid byte 2 of 3-byte UTF-8 sequence.
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8R
>>>> eader.java:684)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.j
>>>> ava:405)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntity
>>>> Scanner.java:1742)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEn
>>>> tityScanner.java:1242)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
>>>> scanCDATASection(XMLDocumentFragmentScannerImpl.java:1654)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
>>>> FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2986)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XML
>>>> DocumentScannerImpl.java:648)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(X
>>>> MLNSDocumentScannerImpl.java:140)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
>>>> scanDocument(XMLDocumentFragmentScannerImpl.java:511)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
>>>> 11Configuration.java:808)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
>>>> 11Configuration.java:737)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.ja
>>>> va:119)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abst
>>>> ractSAXParser.java:1205)
>>>>        at
>>>>
>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.par
>>>> se(SAXParserImpl.java:522)
>>>>        at org.dom4j.io.SAXReader.read(SAXReader.java:465)
>>>>        ... 38 more
>>>> [INFO]
>>>>
>>> ---------------------------------------------------------------------
>> --
>>>> -
>>>> [INFO] Total time: 7 minutes 27 seconds
>>>> [INFO] Finished at: Fri Apr 27 16:24:10 CEST 2012
>>>> [INFO] Final Memory: 202M/371M
>>>> [INFO]
>>>>
>>> ---------------------------------------------------------------------
>> --
>>>> -
>>>> Waiting for Jenkins to finish collecting data
>>>> Maven failed with error.
>>>>
>>>> --------------------------------------------------------------------
>> -
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>> ______________________________________________________________________
>>> This message, including any attachments, is confidential and contains
>> information intended only for the person(s) named above. Any other
>> distribution, copying or disclosure is strictly prohibited. If you are
>> not the intended recipient or have received this message in error,
>> please notify us immediately by reply email and permanently delete the
>> original transmission from all of your systems and hard drives,
>> including any attachments, without making a copy.
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>
> ______________________________________________________________________
> This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven failed with error while reading test results

Posted by Matt Walsh <mw...@chartwelltechnology.com>.
> >> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
> >> reports\result.xml
> >> Invalid byte 2 of 3-byte UTF-8 sequence.

This would lead me to believe there's a BOM (Byte-Order-Mark) error in the result.xml file.

Does the surefire plugin generate BOMs?? 


> -----Original Message-----
> From: Alexis Morelle [mailto:Alexis.Morelle@alcatel-lucent.com]
> Sent: Friday, April 27, 2012 9:42 AM
> To: Maven Users List
> Subject: Re: Maven failed with error while reading test results
> 
> The thing is that if I add -fn for example (never fail), the build ends
> successfully.
> Anyway I just saw something even more strange with the following log.
> 
> It says: [INFO] Error for project: CMS - XML Engine Implementation
> (during install)
> But then: [INFO] Internal error in the plugin manager executing goal
> 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test
> 
> see this log with the -fn option.
> 
> [ERROR] There are test failures.
> 
> Please refer to
> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-reports
> for the individual test results.
> [JENKINS] Recording test results
> [JENKINS] Archiving
> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\pom.xml
> to
> /opt/jenkins/projects/jobs/OT_1.2-OAMP-CMS-
> Deploy_All_Inc15mn/modules/com.alcatel_lucent.ice.oamp.cms.xmlengine$cm
> s-xmlengine/builds/2012-04-27_17-14-
> 12/archive/com.alcatel_lucent.ice.oamp.cms.xmlengine/cms-
> xmlengine/2.1.020.000-SNAPSHOT/cms-xmlengine-2.1.020.000-SNAPSHOT.pom
> [INFO] Error for project: CMS - XML Engine Implementation (during
> install)
> [INFO]
> -----------------------------------------------------------------------
> -
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
> read
> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
> reports\result.xml
> Invalid byte 2 of 3-byte UTF-8 sequence.
> [INFO]
> -----------------------------------------------------------------------
> -
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> -----------------------------------------------------------------------
> -
> [INFO]  + Ignoring failures
> [INFO]
> -----------------------------------------------------------------------
> -
> [INFO] BUILD SUCCESSFUL
> [INFO]
> -----------------------------------------------------------------------
> -
> [INFO] Total time: 30 seconds
> [INFO] Finished at: Fri Apr 27 17:14:44 CEST 2012
> [INFO] Final Memory: 72M/371M
> [INFO]
> -----------------------------------------------------------------------
> -
> Waiting for Jenkins to finish collecting data
> Finished: SUCCESS
> 
> 
> thx very much
> Alexis.
> 
> Le 27/04/2012 17:26, Matt Walsh a écrit :
> > Doesn't look like maven failed. Your tests failed, which caused your
> > build to fail, then Jenkins failed looking for results.
> >
> > Maybe you've configured your Jenkins build to do it's post processing
> > even on failure?
> >
> > Matt
> >
> >> -----Original Message-----
> >> From: Alexis Morelle [mailto:Alexis.Morelle@alcatel-lucent.com]
> >> Sent: Friday, April 27, 2012 9:22 AM
> >> To: users@maven.apache.org
> >> Subject: Maven failed with error while reading test results
> >>
> >> Hi,
> >>
> >> I have this weird error that keep coming up after a simple "mvn
> clean
> >> install".
> >> Maven goes out on this error while reading test results and never
> goes
> >> to the package, install etc goal...
> >>
> >> Would you guys know what this could come from?
> >>
> >> Thank you very much for your help,
> >> Alexis.
> >>
> >>
> >> Tests run: 311, Failures: 4, Errors: 0, Skipped: 0
> >>
> >> [ERROR] There are test failures.
> >>
> >> Please refer to
> >> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
> >> reports for
> >> the individual test results.
> >> [JENKINS] Recording test results
> >> [JENKINS] Archiving
> >> D:\Jenkins-slave\workspace\<jobname>\<modulename>\pom.xml to
> >>
> >
> /opt/jenkins/projects/jobs/<jobname>/modules/<gpId>$<artId>/builds/2012
> >> -04-27_16-16-40/archive/<gpId>/<artId>/2.1.020.000-SNAPSHOT/cms-
> >> xmlengine-2.1.020.000-SNAPSHOT.pom
> >> [INFO]
> >>
> > ---------------------------------------------------------------------
> --
> >> -
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >>
> > ---------------------------------------------------------------------
> --
> >> -
> >> [INFO] Internal error in the plugin manager executing goal
> >> 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
> >> read
> >> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
> >> reports\result.xml
> >> Invalid byte 2 of 3-byte UTF-8 sequence.
> >> [INFO]
> >>
> > ---------------------------------------------------------------------
> --
> >> -
> >> [DEBUG] Trace
> >> org.apache.maven.lifecycle.LifecycleExecutionException: Internal
> error
> >> in the plugin manager executing goal
> >> 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
> >> read
> >> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
> >> reports\result.xml
> >>       at
> >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
> >> tLifecycleExecutor.java:698)
> >>       at
> >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLife
> >> cycle(DefaultLifecycleExecutor.java:556)
> >>       at
> >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Default
> >> LifecycleExecutor.java:535)
> >>       at
> >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandl
> >> eFailures(DefaultLifecycleExecutor.java:387)
> >>       at
> >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> >> (DefaultLifecycleExecutor.java:348)
> >>       at
> >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
> >> cycleExecutor.java:180)
> >>       at
> >>
> >
> org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(Lifecyc
> >> leExecutorInterceptor.java:65)
> >>       at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> >>       at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> >>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> >>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>       at
> >>
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> >> va:39)
> >>       at
> >>
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> >> rImpl.java:25)
> >>       at java.lang.reflect.Method.invoke(Method.java:597)
> >>       at
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >>       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>       at hudson.maven.agent.Main.launch(Main.java:185)
> >>       at hudson.maven.MavenBuilder.call(MavenBuilder.java:151)
> >>       at hudson.maven.Maven2Builder.call(Maven2Builder.java:77)
> >>       at hudson.maven.Maven2Builder.call(Maven2Builder.java:53)
> >>       at hudson.remoting.UserRequest.perform(UserRequest.java:118)
> >>       at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> >>       at hudson.remoting.Request$2.run(Request.java:287)
> >>       at
> >>
> >
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutor
> >> Service.java:72)
> >>       at
> >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> >>       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> >>       at
> >>
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecut
> >> or.java:886)
> >>       at
> >>
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j
> >> ava:908)
> >>       at java.lang.Thread.run(Thread.java:662)
> >> Caused by: org.apache.maven.plugin.PluginManagerException: Failed to
> >> read
> >> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
> >> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
> >> reports\result.xml
> >>       at
> >>
> >
> hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerIn
> >> terceptor.java:196)
> >>       at
> >>
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
> >> tLifecycleExecutor.java:694)
> >>       ... 28 more
> >> Caused by: hudson.util.IOException2: Failed to read
> >> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
> >> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
> >> reports\result.xml
> >>       at hudson.tasks.junit.TestResult.parse(TestResult.java:244)
> >>       at hudson.tasks.junit.TestResult.parse(TestResult.java:163)
> >>       at
> >>
> >
> hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.ja
> >> va:141)
> >>       at
> hudson.maven.Maven2Builder.postExecute(Maven2Builder.java:155)
> >>       at
> >> hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:310)
> >>       at
> >>
> >
> hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPo
> >> st(PluginManagerInterceptor.java:170)
> >>       at
> >>
> >
> hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerIn
> >> terceptor.java:183)
> >>       ... 29 more
> >> Caused by: org.dom4j.DocumentException: Invalid byte 2 of 3-byte
> UTF-8
> >> sequence. Nested exception: Invalid byte 2 of 3-byte UTF-8 sequence.
> >>       at org.dom4j.io.SAXReader.read(SAXReader.java:484)
> >>       at org.dom4j.io.SAXReader.read(SAXReader.java:264)
> >>       at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:112)
> >>       at hudson.tasks.junit.TestResult.parse(TestResult.java:227)
> >>       ... 35 more
> >> Caused by:
> >>
> >
> com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceExcepti
> >> on:
> >> Invalid byte 2 of 3-byte UTF-8 sequence.
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8R
> >> eader.java:684)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.j
> >> ava:405)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntity
> >> Scanner.java:1742)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEn
> >> tityScanner.java:1242)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
> >> scanCDATASection(XMLDocumentFragmentScannerImpl.java:1654)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
> >> FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2986)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XML
> >> DocumentScannerImpl.java:648)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(X
> >> MLNSDocumentScannerImpl.java:140)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
> >> scanDocument(XMLDocumentFragmentScannerImpl.java:511)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
> >> 11Configuration.java:808)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
> >> 11Configuration.java:737)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.ja
> >> va:119)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abst
> >> ractSAXParser.java:1205)
> >>       at
> >>
> >
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.par
> >> se(SAXParserImpl.java:522)
> >>       at org.dom4j.io.SAXReader.read(SAXReader.java:465)
> >>       ... 38 more
> >> [INFO]
> >>
> > ---------------------------------------------------------------------
> --
> >> -
> >> [INFO] Total time: 7 minutes 27 seconds
> >> [INFO] Finished at: Fri Apr 27 16:24:10 CEST 2012
> >> [INFO] Final Memory: 202M/371M
> >> [INFO]
> >>
> > ---------------------------------------------------------------------
> --
> >> -
> >> Waiting for Jenkins to finish collecting data
> >> Maven failed with error.
> >>
> >> --------------------------------------------------------------------
> -
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> ______________________________________________________________________
> > This message, including any attachments, is confidential and contains
> information intended only for the person(s) named above. Any other
> distribution, copying or disclosure is strictly prohibited. If you are
> not the intended recipient or have received this message in error,
> please notify us immediately by reply email and permanently delete the
> original transmission from all of your systems and hard drives,
> including any attachments, without making a copy.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


______________________________________________________________________
This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven failed with error while reading test results

Posted by Alexis Morelle <Al...@alcatel-lucent.com>.
The thing is that if I add -fn for example (never fail), the build ends 
successfully.
Anyway I just saw something even more strange with the following log.

It says: [INFO] Error for project: CMS - XML Engine Implementation 
(during install)
But then: [INFO] Internal error in the plugin manager executing goal 
'org.apache.maven.plugins:maven-surefire-plugin:2.5:test

see this log with the -fn option.

[ERROR] There are test failures.

Please refer to 
D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-reports 
for the individual test results.
[JENKINS] Recording test results
[JENKINS] Archiving 
D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-Deploy_All_Inc15mn\xmlengine\cms-xmlengine\pom.xml 
to 
/opt/jenkins/projects/jobs/OT_1.2-OAMP-CMS-Deploy_All_Inc15mn/modules/com.alcatel_lucent.ice.oamp.cms.xmlengine$cms-xmlengine/builds/2012-04-27_17-14-12/archive/com.alcatel_lucent.ice.oamp.cms.xmlengine/cms-xmlengine/2.1.020.000-SNAPSHOT/cms-xmlengine-2.1.020.000-SNAPSHOT.pom
[INFO] Error for project: CMS - XML Engine Implementation (during install)
[INFO] 
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 
'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to 
read 
D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-reports\result.xml
Invalid byte 2 of 3-byte UTF-8 sequence.
[INFO] 
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
------------------------------------------------------------------------
[INFO]  + Ignoring failures
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 30 seconds
[INFO] Finished at: Fri Apr 27 17:14:44 CEST 2012
[INFO] Final Memory: 72M/371M
[INFO] 
------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
Finished: SUCCESS


thx very much
Alexis.

Le 27/04/2012 17:26, Matt Walsh a écrit :
> Doesn't look like maven failed. Your tests failed, which caused your
> build to fail, then Jenkins failed looking for results.
>
> Maybe you've configured your Jenkins build to do it's post processing
> even on failure?
>
> Matt
>
>> -----Original Message-----
>> From: Alexis Morelle [mailto:Alexis.Morelle@alcatel-lucent.com]
>> Sent: Friday, April 27, 2012 9:22 AM
>> To: users@maven.apache.org
>> Subject: Maven failed with error while reading test results
>>
>> Hi,
>>
>> I have this weird error that keep coming up after a simple "mvn clean
>> install".
>> Maven goes out on this error while reading test results and never goes
>> to the package, install etc goal...
>>
>> Would you guys know what this could come from?
>>
>> Thank you very much for your help,
>> Alexis.
>>
>>
>> Tests run: 311, Failures: 4, Errors: 0, Skipped: 0
>>
>> [ERROR] There are test failures.
>>
>> Please refer to
>> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
>> reports for
>> the individual test results.
>> [JENKINS] Recording test results
>> [JENKINS] Archiving
>> D:\Jenkins-slave\workspace\<jobname>\<modulename>\pom.xml to
>>
> /opt/jenkins/projects/jobs/<jobname>/modules/<gpId>$<artId>/builds/2012
>> -04-27_16-16-40/archive/<gpId>/<artId>/2.1.020.000-SNAPSHOT/cms-
>> xmlengine-2.1.020.000-SNAPSHOT.pom
>> [INFO]
>>
> -----------------------------------------------------------------------
>> -
>> [ERROR] BUILD ERROR
>> [INFO]
>>
> -----------------------------------------------------------------------
>> -
>> [INFO] Internal error in the plugin manager executing goal
>> 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
>> read
>> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
>> reports\result.xml
>> Invalid byte 2 of 3-byte UTF-8 sequence.
>> [INFO]
>>
> -----------------------------------------------------------------------
>> -
>> [DEBUG] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
>> in the plugin manager executing goal
>> 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
>> read
>> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
>> reports\result.xml
>>       at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
>> tLifecycleExecutor.java:698)
>>       at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLife
>> cycle(DefaultLifecycleExecutor.java:556)
>>       at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Default
>> LifecycleExecutor.java:535)
>>       at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandl
>> eFailures(DefaultLifecycleExecutor.java:387)
>>       at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
>> (DefaultLifecycleExecutor.java:348)
>>       at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
>> cycleExecutor.java:180)
>>       at
>>
> org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(Lifecyc
>> leExecutorInterceptor.java:65)
>>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>       at
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>> va:39)
>>       at
>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>> rImpl.java:25)
>>       at java.lang.reflect.Method.invoke(Method.java:597)
>>       at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>       at hudson.maven.agent.Main.launch(Main.java:185)
>>       at hudson.maven.MavenBuilder.call(MavenBuilder.java:151)
>>       at hudson.maven.Maven2Builder.call(Maven2Builder.java:77)
>>       at hudson.maven.Maven2Builder.call(Maven2Builder.java:53)
>>       at hudson.remoting.UserRequest.perform(UserRequest.java:118)
>>       at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>       at hudson.remoting.Request$2.run(Request.java:287)
>>       at
>>
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutor
>> Service.java:72)
>>       at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>       at
>>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecut
>> or.java:886)
>>       at
>>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j
>> ava:908)
>>       at java.lang.Thread.run(Thread.java:662)
>> Caused by: org.apache.maven.plugin.PluginManagerException: Failed to
>> read
>> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
>> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
>> reports\result.xml
>>       at
>>
> hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerIn
>> terceptor.java:196)
>>       at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
>> tLifecycleExecutor.java:694)
>>       ... 28 more
>> Caused by: hudson.util.IOException2: Failed to read
>> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
>> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
>> reports\result.xml
>>       at hudson.tasks.junit.TestResult.parse(TestResult.java:244)
>>       at hudson.tasks.junit.TestResult.parse(TestResult.java:163)
>>       at
>>
> hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.ja
>> va:141)
>>       at hudson.maven.Maven2Builder.postExecute(Maven2Builder.java:155)
>>       at
>> hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:310)
>>       at
>>
> hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPo
>> st(PluginManagerInterceptor.java:170)
>>       at
>>
> hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerIn
>> terceptor.java:183)
>>       ... 29 more
>> Caused by: org.dom4j.DocumentException: Invalid byte 2 of 3-byte UTF-8
>> sequence. Nested exception: Invalid byte 2 of 3-byte UTF-8 sequence.
>>       at org.dom4j.io.SAXReader.read(SAXReader.java:484)
>>       at org.dom4j.io.SAXReader.read(SAXReader.java:264)
>>       at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:112)
>>       at hudson.tasks.junit.TestResult.parse(TestResult.java:227)
>>       ... 35 more
>> Caused by:
>>
> com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceExcepti
>> on:
>> Invalid byte 2 of 3-byte UTF-8 sequence.
>>       at
>>
> com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8R
>> eader.java:684)
>>       at
>>
> com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.j
>> ava:405)
>>       at
>>
> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntity
>> Scanner.java:1742)
>>       at
>>
> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEn
>> tityScanner.java:1242)
>>       at
>>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
>> scanCDATASection(XMLDocumentFragmentScannerImpl.java:1654)
>>       at
>>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
>> FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2986)
>>       at
>>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XML
>> DocumentScannerImpl.java:648)
>>       at
>>
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(X
>> MLNSDocumentScannerImpl.java:140)
>>       at
>>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
>> scanDocument(XMLDocumentFragmentScannerImpl.java:511)
>>       at
>>
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
>> 11Configuration.java:808)
>>       at
>>
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
>> 11Configuration.java:737)
>>       at
>>
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.ja
>> va:119)
>>       at
>>
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abst
>> ractSAXParser.java:1205)
>>       at
>>
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.par
>> se(SAXParserImpl.java:522)
>>       at org.dom4j.io.SAXReader.read(SAXReader.java:465)
>>       ... 38 more
>> [INFO]
>>
> -----------------------------------------------------------------------
>> -
>> [INFO] Total time: 7 minutes 27 seconds
>> [INFO] Finished at: Fri Apr 27 16:24:10 CEST 2012
>> [INFO] Final Memory: 202M/371M
>> [INFO]
>>
> -----------------------------------------------------------------------
>> -
>> Waiting for Jenkins to finish collecting data
>> Maven failed with error.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>
> ______________________________________________________________________
> This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven failed with error while reading test results

Posted by Matt Walsh <mw...@chartwelltechnology.com>.
Doesn't look like maven failed. Your tests failed, which caused your
build to fail, then Jenkins failed looking for results.

Maybe you've configured your Jenkins build to do it's post processing
even on failure?

Matt

> -----Original Message-----
> From: Alexis Morelle [mailto:Alexis.Morelle@alcatel-lucent.com]
> Sent: Friday, April 27, 2012 9:22 AM
> To: users@maven.apache.org
> Subject: Maven failed with error while reading test results
> 
> Hi,
> 
> I have this weird error that keep coming up after a simple "mvn clean
> install".
> Maven goes out on this error while reading test results and never goes
> to the package, install etc goal...
> 
> Would you guys know what this could come from?
> 
> Thank you very much for your help,
> Alexis.
> 
> 
> Tests run: 311, Failures: 4, Errors: 0, Skipped: 0
> 
> [ERROR] There are test failures.
> 
> Please refer to
> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
> reports for
> the individual test results.
> [JENKINS] Recording test results
> [JENKINS] Archiving
> D:\Jenkins-slave\workspace\<jobname>\<modulename>\pom.xml to
>
/opt/jenkins/projects/jobs/<jobname>/modules/<gpId>$<artId>/builds/2012
> -04-27_16-16-40/archive/<gpId>/<artId>/2.1.020.000-SNAPSHOT/cms-
> xmlengine-2.1.020.000-SNAPSHOT.pom
> [INFO]
>
-----------------------------------------------------------------------
> -
> [ERROR] BUILD ERROR
> [INFO]
>
-----------------------------------------------------------------------
> -
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
> read
> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
> reports\result.xml
> Invalid byte 2 of 3-byte UTF-8 sequence.
> [INFO]
>
-----------------------------------------------------------------------
> -
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
> in the plugin manager executing goal
> 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
> read
> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
> reports\result.xml
>      at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
> tLifecycleExecutor.java:698)
>      at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLife
> cycle(DefaultLifecycleExecutor.java:556)
>      at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Default
> LifecycleExecutor.java:535)
>      at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandl
> eFailures(DefaultLifecycleExecutor.java:387)
>      at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> (DefaultLifecycleExecutor.java:348)
>      at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
> cycleExecutor.java:180)
>      at
>
org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(Lifecyc
> leExecutorInterceptor.java:65)
>      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>      at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> va:39)
>      at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> rImpl.java:25)
>      at java.lang.reflect.Method.invoke(Method.java:597)
>      at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>      at hudson.maven.agent.Main.launch(Main.java:185)
>      at hudson.maven.MavenBuilder.call(MavenBuilder.java:151)
>      at hudson.maven.Maven2Builder.call(Maven2Builder.java:77)
>      at hudson.maven.Maven2Builder.call(Maven2Builder.java:53)
>      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
>      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>      at hudson.remoting.Request$2.run(Request.java:287)
>      at
>
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutor
> Service.java:72)
>      at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>      at
>
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecut
> or.java:886)
>      at
>
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j
> ava:908)
>      at java.lang.Thread.run(Thread.java:662)
> Caused by: org.apache.maven.plugin.PluginManagerException: Failed to
> read
> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
> reports\result.xml
>      at
>
hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerIn
> terceptor.java:196)
>      at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
> tLifecycleExecutor.java:694)
>      ... 28 more
> Caused by: hudson.util.IOException2: Failed to read
> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
> Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
> reports\result.xml
>      at hudson.tasks.junit.TestResult.parse(TestResult.java:244)
>      at hudson.tasks.junit.TestResult.parse(TestResult.java:163)
>      at
>
hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.ja
> va:141)
>      at hudson.maven.Maven2Builder.postExecute(Maven2Builder.java:155)
>      at
> hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:310)
>      at
>
hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPo
> st(PluginManagerInterceptor.java:170)
>      at
>
hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerIn
> terceptor.java:183)
>      ... 29 more
> Caused by: org.dom4j.DocumentException: Invalid byte 2 of 3-byte UTF-8
> sequence. Nested exception: Invalid byte 2 of 3-byte UTF-8 sequence.
>      at org.dom4j.io.SAXReader.read(SAXReader.java:484)
>      at org.dom4j.io.SAXReader.read(SAXReader.java:264)
>      at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:112)
>      at hudson.tasks.junit.TestResult.parse(TestResult.java:227)
>      ... 35 more
> Caused by:
>
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceExcepti
> on:
> Invalid byte 2 of 3-byte UTF-8 sequence.
>      at
>
com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8R
> eader.java:684)
>      at
>
com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.j
> ava:405)
>      at
>
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntity
> Scanner.java:1742)
>      at
>
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEn
> tityScanner.java:1242)
>      at
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
> scanCDATASection(XMLDocumentFragmentScannerImpl.java:1654)
>      at
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
> FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2986)
>      at
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XML
> DocumentScannerImpl.java:648)
>      at
>
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(X
> MLNSDocumentScannerImpl.java:140)
>      at
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
> scanDocument(XMLDocumentFragmentScannerImpl.java:511)
>      at
>
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
> 11Configuration.java:808)
>      at
>
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
> 11Configuration.java:737)
>      at
>
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.ja
> va:119)
>      at
>
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abst
> ractSAXParser.java:1205)
>      at
>
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.par
> se(SAXParserImpl.java:522)
>      at org.dom4j.io.SAXReader.read(SAXReader.java:465)
>      ... 38 more
> [INFO]
>
-----------------------------------------------------------------------
> -
> [INFO] Total time: 7 minutes 27 seconds
> [INFO] Finished at: Fri Apr 27 16:24:10 CEST 2012
> [INFO] Final Memory: 202M/371M
> [INFO]
>
-----------------------------------------------------------------------
> -
> Waiting for Jenkins to finish collecting data
> Maven failed with error.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


______________________________________________________________________
This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven failed with error while reading test results

Posted by Matt Walsh <mw...@chartwelltechnology.com>.

> -----Original Message-----
> From: Matt Walsh
> Sent: Friday, April 27, 2012 9:26 AM
> To: users@maven.apache.org
> Subject: RE: Maven failed with error while reading test results
> 
> Doesn't look like maven failed. Your tests failed, which caused your
> build to fail, then Jenkins failed looking for results.
> 
> Maybe you've configured your Jenkins build to do it's post processing
> even on failure?
> 
> Matt
> 
> > -----Original Message-----
> > From: Alexis Morelle [mailto:Alexis.Morelle@alcatel-lucent.com]
> > Sent: Friday, April 27, 2012 9:22 AM
> > To: users@maven.apache.org
> > Subject: Maven failed with error while reading test results
> >
> > Hi,
> >
> > I have this weird error that keep coming up after a simple "mvn
clean
> > install".
> > Maven goes out on this error while reading test results and never
> goes
> > to the package, install etc goal...
> >
> > Would you guys know what this could come from?
> >
> > Thank you very much for your help,
> > Alexis.
> >
> >
> > Tests run: 311, Failures: 4, Errors: 0, Skipped: 0
> >
> > [ERROR] There are test failures.
> >
> > Please refer to
> > D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
> > reports for
> > the individual test results.
> > [JENKINS] Recording test results
> > [JENKINS] Archiving
> > D:\Jenkins-slave\workspace\<jobname>\<modulename>\pom.xml to
> >
>
/opt/jenkins/projects/jobs/<jobname>/modules/<gpId>$<artId>/builds/2012
> > -04-27_16-16-40/archive/<gpId>/<artId>/2.1.020.000-SNAPSHOT/cms-
> > xmlengine-2.1.020.000-SNAPSHOT.pom
> > [INFO]
> >
---------------------------------------------------------------------
> --
> > -
> > [ERROR] BUILD ERROR
> > [INFO]
> >
---------------------------------------------------------------------
> --
> > -
> > [INFO] Internal error in the plugin manager executing goal
> > 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
> > read
> > D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
> > reports\result.xml
> > Invalid byte 2 of 3-byte UTF-8 sequence.
> > [INFO]
> >
---------------------------------------------------------------------
> --
> > -
> > [DEBUG] Trace
> > org.apache.maven.lifecycle.LifecycleExecutionException: Internal
> error
> > in the plugin manager executing goal
> > 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
> > read
> > D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
> > reports\result.xml
> >      at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
> > tLifecycleExecutor.java:698)
> >      at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLife
> > cycle(DefaultLifecycleExecutor.java:556)
> >      at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Default
> > LifecycleExecutor.java:535)
> >      at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandl
> > eFailures(DefaultLifecycleExecutor.java:387)
> >      at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> > (DefaultLifecycleExecutor.java:348)
> >      at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
> > cycleExecutor.java:180)
> >      at
> >
>
org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(Lifecyc
> > leExecutorInterceptor.java:65)
> >      at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> >      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> >      at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> >      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >      at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> > va:39)
> >      at
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> > rImpl.java:25)
> >      at java.lang.reflect.Method.invoke(Method.java:597)
> >      at
> > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >      at hudson.maven.agent.Main.launch(Main.java:185)
> >      at hudson.maven.MavenBuilder.call(MavenBuilder.java:151)
> >      at hudson.maven.Maven2Builder.call(Maven2Builder.java:77)
> >      at hudson.maven.Maven2Builder.call(Maven2Builder.java:53)
> >      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
> >      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> >      at hudson.remoting.Request$2.run(Request.java:287)
> >      at
> >
>
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutor
> > Service.java:72)
> >      at
> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> >      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> >      at
> >
>
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecut
> > or.java:886)
> >      at
> >
>
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j
> > ava:908)
> >      at java.lang.Thread.run(Thread.java:662)
> > Caused by: org.apache.maven.plugin.PluginManagerException: Failed to
> > read
> > D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
> > Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
> > reports\result.xml
> >      at
> >
>
hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerIn
> > terceptor.java:196)
> >      at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
> > tLifecycleExecutor.java:694)
> >      ... 28 more
> > Caused by: hudson.util.IOException2: Failed to read
> > D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
> > Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
> > reports\result.xml
> >      at hudson.tasks.junit.TestResult.parse(TestResult.java:244)
> >      at hudson.tasks.junit.TestResult.parse(TestResult.java:163)
> >      at
> >
>
hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.ja
> > va:141)
> >      at
> hudson.maven.Maven2Builder.postExecute(Maven2Builder.java:155)
> >      at
> > hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:310)
> >      at
> >
>
hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPo
> > st(PluginManagerInterceptor.java:170)
> >      at
> >
>
hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerIn
> > terceptor.java:183)
> >      ... 29 more
> > Caused by: org.dom4j.DocumentException: Invalid byte 2 of 3-byte
UTF-
> 8
> > sequence. Nested exception: Invalid byte 2 of 3-byte UTF-8 sequence.
> >      at org.dom4j.io.SAXReader.read(SAXReader.java:484)
> >      at org.dom4j.io.SAXReader.read(SAXReader.java:264)
> >      at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:112)
> >      at hudson.tasks.junit.TestResult.parse(TestResult.java:227)
> >      ... 35 more
> > Caused by:
> >
>
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceExcepti
> > on:
> > Invalid byte 2 of 3-byte UTF-8 sequence.
> >      at
> >
>
com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8R
> > eader.java:684)
> >      at
> >
>
com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.j
> > ava:405)
> >      at
> >
>
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntity
> > Scanner.java:1742)
> >      at
> >
>
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEn
> > tityScanner.java:1242)
> >      at
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
> > scanCDATASection(XMLDocumentFragmentScannerImpl.java:1654)
> >      at
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
> > FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2986)
> >      at
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XML
> > DocumentScannerImpl.java:648)
> >      at
> >
>
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(X
> > MLNSDocumentScannerImpl.java:140)
> >      at
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
> > scanDocument(XMLDocumentFragmentScannerImpl.java:511)
> >      at
> >
>
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
> > 11Configuration.java:808)
> >      at
> >
>
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
> > 11Configuration.java:737)
> >      at
> >
>
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.ja
> > va:119)
> >      at
> >
>
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abst
> > ractSAXParser.java:1205)
> >      at
> >
>
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.par
> > se(SAXParserImpl.java:522)
> >      at org.dom4j.io.SAXReader.read(SAXReader.java:465)
> >      ... 38 more
> > [INFO]
> >
---------------------------------------------------------------------
> --
> > -
> > [INFO] Total time: 7 minutes 27 seconds
> > [INFO] Finished at: Fri Apr 27 16:24:10 CEST 2012
> > [INFO] Final Memory: 202M/371M
> > [INFO]
> >
---------------------------------------------------------------------
> --
> > -
> > Waiting for Jenkins to finish collecting data
> > Maven failed with error.
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org


______________________________________________________________________
This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven failed with error while reading test results

Posted by Alexis Morelle <Al...@alcatel-lucent.com>.
Lol don't consider that, that was a lame attempt to obfuscate few 
internal details as asked by my company...
See my next answer for more details with normal logs, sorry about that.

Alexis.

Le 27/04/2012 17:37, Wayne Fay a écrit :
>> Please refer to
>> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-reports
>> for the individual test results.
> Does the log literally say<jobname>  and<modulename>? If so, this
> suggests an error in how Jenkins is calling your Maven build (to me at
> least).
>
>> [JENKINS] Archiving
>> D:\Jenkins-slave\workspace\<jobname>\<modulename>\pom.xml to
>> /opt/jenkins/projects/jobs/<jobname>/modules/<gpId>$<artId>/builds/2012-04-27_16-16-40/archive/<gpId>/<artId>/2.1.020.000-SNAPSHOT/cms-xmlengine-2.1.020.000-SNAPSHOT.pom
> Here we see<gpId>  and $<artId>  which seem wrong.
>
>> Caused by: org.apache.maven.plugin.PluginManagerException: Failed to read
>> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-reports\result.xml
> Here in the log it looks like the groupIds and artifactIds are fully resolved.
>
> There is a lot going on here. I don't know where to begin.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven failed with error while reading test results

Posted by Wayne Fay <wa...@gmail.com>.
> Please refer to
> D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-reports
> for the individual test results.

Does the log literally say <jobname> and <modulename>? If so, this
suggests an error in how Jenkins is calling your Maven build (to me at
least).

> [JENKINS] Archiving
> D:\Jenkins-slave\workspace\<jobname>\<modulename>\pom.xml to
> /opt/jenkins/projects/jobs/<jobname>/modules/<gpId>$<artId>/builds/2012-04-27_16-16-40/archive/<gpId>/<artId>/2.1.020.000-SNAPSHOT/cms-xmlengine-2.1.020.000-SNAPSHOT.pom

Here we see <gpId> and $<artId> which seem wrong.

> Caused by: org.apache.maven.plugin.PluginManagerException: Failed to read
> D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-reports\result.xml

Here in the log it looks like the groupIds and artifactIds are fully resolved.

There is a lot going on here. I don't know where to begin.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Maven failed with error while reading test results

Posted by Alexis Morelle <Al...@alcatel-lucent.com>.
Hi,

I have this weird error that keep coming up after a simple "mvn clean 
install".
Maven goes out on this error while reading test results and never goes 
to the package, install etc goal...

Would you guys know what this could come from?

Thank you very much for your help,
Alexis.


Tests run: 311, Failures: 4, Errors: 0, Skipped: 0

[ERROR] There are test failures.

Please refer to 
D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-reports for 
the individual test results.
[JENKINS] Recording test results
[JENKINS] Archiving 
D:\Jenkins-slave\workspace\<jobname>\<modulename>\pom.xml to 
/opt/jenkins/projects/jobs/<jobname>/modules/<gpId>$<artId>/builds/2012-04-27_16-16-40/archive/<gpId>/<artId>/2.1.020.000-SNAPSHOT/cms-xmlengine-2.1.020.000-SNAPSHOT.pom
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 
'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to 
read 
D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-reports\result.xml
Invalid byte 2 of 3-byte UTF-8 sequence.
[INFO] 
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error 
in the plugin manager executing goal 
'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to 
read 
D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-reports\result.xml
     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)
     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
     at 
org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
     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:597)
     at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
     at hudson.maven.agent.Main.launch(Main.java:185)
     at hudson.maven.MavenBuilder.call(MavenBuilder.java:151)
     at hudson.maven.Maven2Builder.call(Maven2Builder.java:77)
     at hudson.maven.Maven2Builder.call(Maven2Builder.java:53)
     at hudson.remoting.UserRequest.perform(UserRequest.java:118)
     at hudson.remoting.UserRequest.perform(UserRequest.java:48)
     at hudson.remoting.Request$2.run(Request.java:287)
     at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.maven.plugin.PluginManagerException: Failed to 
read 
D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-reports\result.xml
     at 
hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:196)
     at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
     ... 28 more
Caused by: hudson.util.IOException2: Failed to read 
D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-reports\result.xml
     at hudson.tasks.junit.TestResult.parse(TestResult.java:244)
     at hudson.tasks.junit.TestResult.parse(TestResult.java:163)
     at 
hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:141)
     at hudson.maven.Maven2Builder.postExecute(Maven2Builder.java:155)
     at hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:310)
     at 
hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPost(PluginManagerInterceptor.java:170)
     at 
hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:183)
     ... 29 more
Caused by: org.dom4j.DocumentException: Invalid byte 2 of 3-byte UTF-8 
sequence. Nested exception: Invalid byte 2 of 3-byte UTF-8 sequence.
     at org.dom4j.io.SAXReader.read(SAXReader.java:484)
     at org.dom4j.io.SAXReader.read(SAXReader.java:264)
     at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:112)
     at hudson.tasks.junit.TestResult.parse(TestResult.java:227)
     ... 35 more
Caused by: 
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 
Invalid byte 2 of 3-byte UTF-8 sequence.
     at 
com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684)
     at 
com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:405)
     at 
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
     at 
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEntityScanner.java:1242)
     at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanCDATASection(XMLDocumentFragmentScannerImpl.java:1654)
     at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2986)
     at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
     at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
     at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
     at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
     at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
     at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
     at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
     at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
     at org.dom4j.io.SAXReader.read(SAXReader.java:465)
     ... 38 more
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 7 minutes 27 seconds
[INFO] Finished at: Fri Apr 27 16:24:10 CEST 2012
[INFO] Final Memory: 202M/371M
[INFO] 
------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
Maven failed with error.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Anyone is actually use "central" repository?

Posted by Rajwinder Makkar <rm...@gmail.com>.
In first case :

no matter what is the id of the requested repo it will go the url mentioned.

In the second case :

Only requests for repo with id "thirdparty" will do tthe url mentioned.

And more details are on the link which is mentioned before.

What we did was , created a virtual repo and put all repos behind it and
then use mirrior option to send all requests to this virtual repo.

-Raj

On Thu, Apr 26, 2012 at 6:45 PM, Wayne Fay <wa...@gmail.com> wrote:

> > How to consolidate these two settings?
>
> This is documented online under "Advanced Mirror Specification":
> http://maven.apache.org/guides/mini/guide-mirror-settings.html
>
> Here's a hint:
> >       <mirrorOf>*,!central</mirrorOf>
>
> The *,!central in the mirrorOf means "mirror all except central".
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Anyone is actually use "central" repository?

Posted by Wayne Fay <wa...@gmail.com>.
> How to consolidate these two settings?

This is documented online under "Advanced Mirror Specification":
http://maven.apache.org/guides/mini/guide-mirror-settings.html

Here's a hint:
>       <mirrorOf>*,!central</mirrorOf>

The *,!central in the mirrorOf means "mirror all except central".

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org