[ https://issues.apache.org/jira/browse/SUREFIRE-1480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16426353#comment-16426353 ]
Mark Lehky commented on SUREFIRE-1480: -------------------------------------- That was a total fail. # I added some logging. # I ran {{mvn -DskipTests -Dcheckstyle.skip install}}, which passed. # Updated my project to use surefire 3.0.0-SNAPSHOT. I get: {noformat} [INFO] --- maven-failsafe-plugin:3.0.0-SNAPSHOT:integration-test (default) @ XXX-integrationtests --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.345 s [INFO] Finished at: 2018-04-04T16:05:24-07:00 [INFO] Final Memory: 26M/409M [INFO] ------------------------------------------------------------------------ --------------------------------------------------- constituent[0]: file:/Users/mlehky/apache-maven-3.5.0/conf/logging/ constituent[1]: file:/Users/mlehky/apache-maven-3.5.0/lib/aopalliance-1.0.jar constituent[2]: file:/Users/mlehky/apache-maven-3.5.0/lib/cdi-api-1.0.jar constituent[3]: file:/Users/mlehky/apache-maven-3.5.0/lib/commons-cli-1.4.jar constituent[4]: file:/Users/mlehky/apache-maven-3.5.0/lib/commons-io-2.5.jar constituent[5]: file:/Users/mlehky/apache-maven-3.5.0/lib/commons-lang3-3.5.jar constituent[6]: file:/Users/mlehky/apache-maven-3.5.0/lib/guava-20.0.jar constituent[7]: file:/Users/mlehky/apache-maven-3.5.0/lib/guice-4.0-no_aop.jar constituent[8]: file:/Users/mlehky/apache-maven-3.5.0/lib/jansi-1.13.jar constituent[9]: file:/Users/mlehky/apache-maven-3.5.0/lib/javax.inject-1.jar constituent[10]: file:/Users/mlehky/apache-maven-3.5.0/lib/jcl-over-slf4j-1.7.22.jar constituent[11]: file:/Users/mlehky/apache-maven-3.5.0/lib/jsr250-api-1.0.jar constituent[12]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-artifact-3.5.0.jar constituent[13]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-builder-support-3.5.0.jar constituent[14]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-compat-3.5.0.jar constituent[15]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-core-3.5.0.jar constituent[16]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-embedder-3.5.0.jar constituent[17]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-model-3.5.0.jar constituent[18]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-model-builder-3.5.0.jar constituent[19]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-plugin-api-3.5.0.jar constituent[20]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-repository-metadata-3.5.0.jar constituent[21]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-resolver-api-1.0.3.jar constituent[22]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-resolver-connector-basic-1.0.3.jar constituent[23]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-resolver-impl-1.0.3.jar constituent[24]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-resolver-provider-3.5.0.jar constituent[25]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-resolver-spi-1.0.3.jar constituent[26]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-resolver-transport-wagon-1.0.3.jar constituent[27]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-resolver-util-1.0.3.jar constituent[28]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-settings-3.5.0.jar constituent[29]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-settings-builder-3.5.0.jar constituent[30]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-shared-utils-3.1.0.jar constituent[31]: file:/Users/mlehky/apache-maven-3.5.0/lib/maven-slf4j-provider-3.5.0.jar constituent[32]: file:/Users/mlehky/apache-maven-3.5.0/lib/org.eclipse.sisu.inject-0.3.3.jar constituent[33]: file:/Users/mlehky/apache-maven-3.5.0/lib/org.eclipse.sisu.plexus-0.3.3.jar constituent[34]: file:/Users/mlehky/apache-maven-3.5.0/lib/plexus-cipher-1.7.jar constituent[35]: file:/Users/mlehky/apache-maven-3.5.0/lib/plexus-component-annotations-1.7.1.jar constituent[36]: file:/Users/mlehky/apache-maven-3.5.0/lib/plexus-interpolation-1.24.jar constituent[37]: file:/Users/mlehky/apache-maven-3.5.0/lib/plexus-sec-dispatcher-1.4.jar constituent[38]: file:/Users/mlehky/apache-maven-3.5.0/lib/plexus-utils-3.0.24.jar constituent[39]: file:/Users/mlehky/apache-maven-3.5.0/lib/slf4j-api-1.7.22.jar constituent[40]: file:/Users/mlehky/apache-maven-3.5.0/lib/wagon-file-2.12.jar constituent[41]: file:/Users/mlehky/apache-maven-3.5.0/lib/wagon-http-2.12-shaded.jar constituent[42]: file:/Users/mlehky/apache-maven-3.5.0/lib/wagon-provider-api-2.12.jar --------------------------------------------------- Exception in thread "main" java.lang.Error: Unresolved compilation problems: The import org.apache.maven.shared.utils.logging.MessageBuilder cannot be resolved The import org.apache.maven.shared.utils.logging.MessageUtils cannot be resolved MessageBuilder cannot be resolved to a type The method buffer() is undefined for the type DefaultReporterFactory MessageBuilder cannot be resolved to a type The method buffer() is undefined for the type DefaultReporterFactory MessageBuilder cannot be resolved to a type The method buffer() is undefined for the type DefaultReporterFactory MessageBuilder cannot be resolved to a type The method buffer() is undefined for the type DefaultReporterFactory MessageBuilder cannot be resolved to a type The method buffer() is undefined for the type DefaultReporterFactory at org.apache.maven.plugin.surefire.report.DefaultReporterFactory.<init>(DefaultReporterFactory.java:26) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.<init>(ForkStarter.java:228) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.createForkStarter(AbstractSurefireMojo.java:2047) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1146) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:978) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:854) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345) at org.apache.maven.cli.MavenCli.main(MavenCli.java:191) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) {noformat} The error "MessageBuilder cannot be resolved to a type" I got from my IDE as well. So now I am not sure what {{mvn install}} actually did. :( > parallel tests may produce invalid .xml report > ---------------------------------------------- > > Key: SUREFIRE-1480 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1480 > Project: Maven Surefire > Issue Type: Bug > Components: Junit 4.7+ (parallel) support, Maven Failsafe Plugin, > Maven Surefire Plugin > Affects Versions: 2.20.1 > Reporter: Mark Lehky > Priority: Major > Attachments: FailedXMLReport.txt, Stacktrace_failedTest.txt > > > Relevant software: > * Jenkins 2.108 > * Maven 3.?? > * JUnit 4.12 > * maven-failsafe-plugin 2.20.1 (I have seen this issue with surefire as well) > I have a testsuite (one JUnit class) that contains multiple tests (multiple > JUnit methods), which are all run in parallel. Some of the tests may be > ignore using JUnit {{Assume}}. > On occasion (not 100% reproducible), the resulting report will contain an > entry like: > {noformat} > < message="Skip test!"> > {noformat} > The correct entry, as is produced most of the time, should be: > {noformat} > <skipped message="Skip test!"/> > {noformat} > The invalid formatted XML, when run in Jenkins, results in the test being > flagged as failed, and Jenkins simply has the message: > "TEST-....xml.[failed-to-read]" (the dots are replaced with the correct > filename!). -- This message was sent by Atlassian JIRA (v7.6.3#76005)