Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [modisco-dev] Maven Build failure on Windows

Hi

Bugs should be reported to Bugzilla.

But it is known. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=582650

The last weekly nightly build predated 2023-12 so was ok.

Running a new nightly build now uses 2023-12 and it fails.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=582716 raised.

Workaround: avoid 2023-12

    Regards

        Ed Willink

On 07/12/2023 16:53, Steve Brown via modisco-dev wrote:
Hi,

I'm trying to set up a development environment in Windows for modisco.

These are the steps I've taken:

1. Deleted my local Maven and P2 repositories
2. Deleted Other eclipse installations and workspaces
3. Used the Eclipse installer to install Eclipse 2023-12 for committers
4. Launched eclipse
5. Used Oomph to import the modisco project from the catalogue

At this point the modisco project loaded into Eclipse with no errors. The Git branch is "master".

6. I closed Eclipse
7. Navigate to [code]C:\Work\eclipse-committers-workspace\.git\org.eclipse.modisco\org.eclipse.modisco.releng.tycho[/code] in a command prompt

8 Set the build environment:

[code]
> set JAVA_HOME=C:\Tools\jdk-17
> set Path=%JAVA_HOME%\bin;^
C:\Tools\apache-maven-3.9.5\bin;^
C:\WINDOWS;^
C:\WINDOWS\system32;^
C:\WINDOWS\System32\Wbem;^
C:\WINDOWS\System32\WindowsPowerShell\v1.0\;^
C:\Program Files\Git\cmd;^
C:\Users\SteveBrown\AppData\Local\Microsoft\WindowsApps
[/code]

9. Verify the Maven and the JDK are OK:

[code]
>mvn -version
Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)
Maven home: C:\Tools\apache-maven-3.9.5
Java version: 17.0.9, vendor: Eclipse Adoptium, runtime: C:\Tools\jdk-17
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows
>
[/code]

10. Run the Maven build:

[code]
> mvn -B -ntp clean install
[/code]

I get this failure:

[code]
[INFO] --- tycho-surefire:2.7.5:test (AllUITests) @ org.eclipse.modisco.infra.browser.custom.examples.java.jdk.tests --- [INFO] Could not find a java toolchain of type jdk, using java from JAVA_HOME instead (C:\Tools\jdk-17\bin\java.exe) [INFO] Executing Test Runtime with timeout 1800, logs (if any) will be placed at: C:\Work\eclipse-committers-workspace\.git\org.eclipse.modisco\org.eclipse.modisco.infra.browser.custom.examples.java.jdk.tests\target\work\data\.metadata\.log
[INFO] Command line:
        [C:\Tools\jdk-17\bin\java.exe, -Dosgi.noShutdown=false, -Dosgi.os=win32, -Dosgi.ws=win32, -Dosgi.arch=x86_64, -DoutputEncoding=UTF-8, -Dosgi.clean=true, -jar, C:\Work\.m2\repository\p2\osgi\bundle\org.eclipse.equinox.launcher\1.6.600.v20231106-1826\org.eclipse.equinox.launcher-1.6.600.v20231106-1826.jar, -consolelog, -data, C:\Work\eclipse-committers-workspace\.git\org.eclipse.modisco\org.eclipse.modisco.infra.browser.custom.examples.java.jdk.tests\target\work\data, -install, C:\Work\eclipse-committers-workspace\.git\org.eclipse.modisco\org.eclipse.modisco.infra.browser.custom.examples.java.jdk.tests\target\work, -configuration, C:\Work\eclipse-committers-workspace\.git\org.eclipse.modisco\org.eclipse.modisco.infra.browser.custom.examples.java.jdk.tests\target\work\configuration, -application, org.eclipse.tycho.surefire.osgibooter.uitest, -testproperties, C:\Work\eclipse-committers-workspace\.git\org.eclipse.modisco\org.eclipse.modisco.infra.browser.custom.examples.java.jdk.tests\target\surefire.properties, -testApplication, org.eclipse.ui.ide.workbench, -timeout, 1800000]
Launching application org.eclipse.ui.ide.workbench...
!SESSION 2023-12-07 10:31:38.617 -----------------------------------------------
eclipse.buildId=unknown
java.version=17.0.9
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Framework arguments:  -application org.eclipse.tycho.surefire.osgibooter.uitest -testproperties C:\Work\eclipse-committers-workspace\.git\org.eclipse.modisco\org.eclipse.modisco.infra.browser.custom.examples.java.jdk.tests\target\surefire.properties -testApplication org.eclipse.ui.ide.workbench -timeout 1800000 Command-line arguments:  -consolelog -data C:\Work\eclipse-committers-workspace\.git\org.eclipse.modisco\org.eclipse.modisco.infra.browser.custom.examples.java.jdk.tests\target\work\data -application org.eclipse.tycho.surefire.osgibooter.uitest -testproperties C:\Work\eclipse-committers-workspace\.git\org.eclipse.modisco\org.eclipse.modisco.infra.browser.custom.examples.java.jdk.tests\target\surefire.properties -testApplication org.eclipse.ui.ide.workbench -timeout 1800000

!ENTRY org.eclipse.tycho.surefire.osgibooter 1 0 2023-12-07 10:31:47.040
!MESSAGE starting DumpStackTracesTimer with timeout=1680000 at 2023-12-07 10:31:47 +0000 org.apache.maven.surefire.util.SurefireReflectionException: java.lang.ClassNotFoundException: org.apache.maven.surefire.junit4.JUnit4Provider         at org.apache.maven.surefire.util.ReflectionUtils.loadClass(ReflectionUtils.java:249)         at org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:133)         at org.apache.maven.surefire.booter.SurefireReflector.instantiateProvider(SurefireReflector.java:265)         at org.apache.maven.surefire.booter.ProviderFactory.createProvider(ProviderFactory.java:118)         at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:83)         at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:128)         at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication$1.run(AbstractUITestApplication.java:37)         at org.eclipse.e4.ui.internal.workbench.swt.E4Testable.lambda$1(E4Testable.java:127)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:132)         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4046)         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3662)         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)         at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
        at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:648)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:555)         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)         at org.eclipse.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:29)         at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:122)         at org.eclipse.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:35)         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:651)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:588)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1459)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1432)
Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.junit4.JUnit4Provider         at org.eclipse.tycho.surefire.osgibooter.CombinedClassLoader.findClass(CombinedClassLoader.java:39)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
        at org.apache.maven.surefire.util.ReflectionUtils.loadClass(ReflectionUtils.java:241)
        ... 36 more
[/code]

My local Maven repository has the file:

[code]C:\Work\.m2\repository\org\apache\maven\surefire\surefire-junit4\3.0.0-M5\surefire-junit4-3.0.0-M5.jar[/code], which has the [code]org.apache.maven.surefire.junit4.JUnit4Provider[/code] class in it.

I repeated the whole (steps 1 through 10) process on a branch created from the [code]1.5.3[/code] tag, with exactly the same result.

This is extremely frustrating. I'd be grateful for any help in resolving this issue.

Many thanks,
Steve Brown

_______________________________________________
modisco-dev mailing list
modisco-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/modisco-dev


Back to the top