Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-11942

Building xwiki projects fails due to test failures

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.4.4
    • 6.4.3
    • None
    • Unknown
    • N/A
    • N/A

    Description

      mvn clean install of xwiki-commons, it failing with the following message:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project xwiki-commons-crypto-password: There are test failures.
      [ERROR] -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project xwiki-commons-crypto-password: There are test failures.
      
      Please refer to /PATH/xwiki-commons/xwiki-commons-core/xwiki-commons-crypto/xwiki-commons-crypto-password/target/surefire-reports for the individual test results.
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
              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:483)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
      
      Please refer to /PATH/xwiki-commons/xwiki-commons-core/xwiki-commons-crypto/xwiki-commons-crypto-password/target/surefire-reports for the individual test results.
              at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:82)
              at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:190)
              at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:852)
              at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:720)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
              ... 19 more
      

      Similarly, building of xwiki-rendering is failing with message: "org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project xwiki-rendering-api: There are test failures." and building of xwiki-platform is failing with error message: "org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project xwiki-platform-filter-stream-xar: There are test failures.".

      I could successfully build xwiki-enterprise.
      I am using Apache Maven 3.0.5 and Java version: 1.8.0_3. 1. I am building on linux.

      Using Java version 1.7 (instead of java 1.8), for xwiki-commons, 19 more reactors got built successfully and failed at reactor Extension - Repository - Maven with message: "org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project xwiki-commons-extension-repository-maven: There are test failures."

      Same for xwiki-rendering. Previously with java 8 it was failing at rendering api reactor. With java 7 it could successfully build 17 more reactors and failed at reactor Syntax - DocBook with message: "org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project xwiki-rendering-syntax-docbook: There are test failures.".

      For xwiki-platform it is still failing with the same error at same reactor.

      I found a related JIRA: http://jira.xwiki.org/browse/XWIKI-10718

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              amritg Amrita Ghosh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: