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

The docker-based test framework uses the project version rather than the platform version to load dependencies

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 10.10
    • 10.10-rc-1
    • Test Framework
    • None
    • Unknown
    • N/A

    Description

      This prevents us from using the framework for supported extensions outside xwiki-platform (such as CKEditor Integration).

      [INFO] --- maven-surefire-plugin:3.0.0-M1:test (default-test) @ application-ckeditor-test-tests ---
      15:39:02.218 [main] INFO  o.x.t.d.junit5.XWikiDockerExtension - XWiki is not started, starting all...
      15:39:02.221 [main] INFO  o.x.t.d.junit5.XWikiDockerExtension - (*) Starting database [HSQLDB_EMBEDDED]...
      15:39:02.225 [main] INFO  o.x.t.d.junit5.XWikiDockerExtension - (*) Building custom XWiki WAR...
      15:39:02.225 [main] INFO  o.x.t.d.junit5.XWikiDockerExtension - XWiki WAR directory [./target/hsqldb_embedded-default-default-jetty_standalone-default-firefox/xwiki] doesn't exists, rebuilding WAR!
      15:39:04.427 [main] INFO  o.x.test.docker.junit5.WARBuilder - Finding version ...
      15:39:04.533 [main] INFO  o.x.test.docker.junit5.WARBuilder - Found version = [1.28-SNAPSHOT]
      15:39:04.533 [main] INFO  o.x.test.docker.junit5.WARBuilder - Resolving distribution dependencies ...
      [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.713 s <<< FAILURE! - in org.xwiki.ckeditor.test.ui.SaveTest
      [ERROR] org.xwiki.ckeditor.test.ui.SaveTest  Time elapsed: 6.712 s  <<< ERROR!
      org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.xwiki.platform:xwiki-platform-extension-handler-xar:jar:1.28-SNAPSHOT, org.xwiki.platform:xwiki-platform-extension-handler-jar:jar:1.28-SNAPSHOT, org.xwiki.commons:xwiki-commons-extension-repository-maven-snapshots:jar:1.28-SNAPSHOT, org.xwiki.platform:xwiki-platform-flamingo-skin-resources:zip:1.28-SNAPSHOT: Could not find artifact org.xwiki.platform:xwiki-platform-extension-handler-xar:jar:1.28-SNAPSHOT in xwiki (http://nexus.xwiki.org/nexus/content/groups/public)
      	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:355)
      	at org.xwiki.test.docker.junit5.ArtifactResolver.getArtifactDependencies(ArtifactResolver.java:158)
      	at org.xwiki.test.docker.junit5.ArtifactResolver.getDistributionDependencies(ArtifactResolver.java:216)
      	at org.xwiki.test.docker.junit5.WARBuilder.build(WARBuilder.java:120)
      	at org.xwiki.test.docker.junit5.XWikiDockerExtension.beforeAll(XWikiDockerExtension.java:122)
      	at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambda$invokeBeforeAllCallbacks$7(ClassTestDescriptor.java:358)
      	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
      	at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.invokeBeforeAllCallbacks(ClassTestDescriptor.java:358)
      	at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.before(ClassTestDescriptor.java:197)
      	at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.before(ClassTestDescriptor.java:74)
      	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:102)
      	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
      	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:95)
      	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:71)
      	at java.util.ArrayList.forEach(ArrayList.java:1257)
      	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
      	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:110)
      	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
      	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:95)
      	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:71)
      	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
      	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
      	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
      	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:220)
      	at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:188)
      	at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:202)
      	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:181)
      	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
      	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:142)
      	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:117)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      	Suppressed: java.lang.NullPointerException
      		at org.xwiki.test.docker.junit5.XWikiDockerExtension.stopServletEngine(XWikiDockerExtension.java:328)
      		at org.xwiki.test.docker.junit5.XWikiDockerExtension.afterAll(XWikiDockerExtension.java:227)
      		at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambda$invokeAfterAllCallbacks$11(ClassTestDescriptor.java:396)
      		at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
      		at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambda$invokeAfterAllCallbacks$12(ClassTestDescriptor.java:396)
      		at java.util.ArrayList.forEach(ArrayList.java:1257)
      		at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.invokeAfterAllCallbacks(ClassTestDescriptor.java:396)
      		at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.after(ClassTestDescriptor.java:221)
      		at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.after(ClassTestDescriptor.java:74)
      		at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:119)
      		at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
      		at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:119)
      		... 21 more
      Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.xwiki.platform:xwiki-platform-extension-handler-xar:jar:1.28-SNAPSHOT, org.xwiki.platform:xwiki-platform-extension-handler-jar:jar:1.28-SNAPSHOT, org.xwiki.commons:xwiki-commons-extension-repository-maven-snapshots:jar:1.28-SNAPSHOT, org.xwiki.platform:xwiki-platform-flamingo-skin-resources:zip:1.28-SNAPSHOT: Could not find artifact org.xwiki.platform:xwiki-platform-extension-handler-xar:jar:1.28-SNAPSHOT in xwiki (http://nexus.xwiki.org/nexus/content/groups/public)
      	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:422)
      	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:224)
      	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:338)
      	... 33 more
      Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.xwiki.platform:xwiki-platform-extension-handler-xar:jar:1.28-SNAPSHOT in xwiki (http://nexus.xwiki.org/nexus/content/groups/public)
      	at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:48)
      	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:365)
      	at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:75)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      [ERROR] Errors: 
      [ERROR]   SaveTest ยป DependencyResolution The following artifacts could not be resolved:...
      [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 43.628 s
      [INFO] Finished at: 2018-11-23T15:39:09+02:00
      [INFO] ------------------------------------------------------------------------
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: