Hi
I'm trying to add support for new Eclipse versions.
Our modeling tool is based on Eclipse 2022-06 because we are temporarily locked to Java 11. So I added a 2022-06 target platform for Gendoc and migrated it to Java 11: https://gitlab.eclipse.org/eclipse/gendoc/org.eclipse.gendoc/-/merge_requests/1
But I have two problems:
1) The build of one project org.eclipse.gendoc.services.xlsx.tests is failed with the error "The package org.w3c.dom is accessible from more than one module: , java.xml".
To reproduce it just run:
mvn clean verify -DskipTests
2) Tests are failed. To reproduce it run:
The error is "Workbench has not been created yet":
Running org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.108 s <<< FAILURE! - in org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest
simpleTest(org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest) Time elapsed: 7.067 s <<< ERROR!
java.lang.NoClassDefFoundError: org/eclipse/papyrus/infra/ui/emf/databinding/EMFObservableList
at org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest.simpleTest(PptxSimpleTest.java:20)
Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.papyrus.infra.ui.emf (452).
at org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest.simpleTest(PptxSimpleTest.java:20)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.papyrus.infra.ui.internal.emf.Activator.start() of bundle org.eclipse.papyrus.infra.ui.emf.
at org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest.simpleTest(PptxSimpleTest.java:20)
Caused by: java.lang.ExceptionInInitializerError
at org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest.simpleTest(PptxSimpleTest.java:20)
Caused by: java.lang.IllegalStateException: Workbench has not been created yet.
at org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest.simpleTest(PptxSimpleTest.java:20)
Could you please help to fix it?
I hope after that it will not be a big deal to add a 2024-03 target platform or a newer one.