Skip to content

Maven build fails on the nightly testing (basically build fails) #1204

@jantje

Description

@jantje

Since accepting pull request #1201 the nightly testing fails in maven.
When run from inside eclipse the testing is successful.
The maven fails on my windows system, on travis https://travis-ci.org/github/Sloeber/arduino-eclipse-plugin and on my jenkins build server (linux).
Looking -on my windows system- at the log of the workspace C:\Users\jan\git\arduino-eclipse-plugin\io.sloeber.tests\target\work\data.metadata.log (attached to this issue)
I see following errors

!ENTRY org.eclipse.cdt.core.native 4 0 2020-07-10 19:11:52.695 !MESSAGE no spawner in java.library.path !ENTRY org.eclipse.cdt.core 1 0 2020-07-10 19:11:53.774 !MESSAGE Indexed '00001_Library_RTCZero_Epoch' (0 sources, 0 headers) in 0,032 sec: 0 declarations; 0 references; 0 unresolved inclusions; 0 syntax errors; 0 unresolved names (0%) !ENTRY org.eclipse.osgi 4 0 2020-07-10 19:11:57.083 !MESSAGE An error occurred while automatically activating bundle org.eclipse.cdt.ui (23). !STACK 0 org.osgi.framework.BundleException: Exception in org.eclipse.cdt.ui.CUIPlugin.start() of bundle org.eclipse.cdt.ui.	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:863) .... Caused by: java.lang.IllegalStateException: Workbench has not been created yet.	at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:95)	at org.eclipse.cdt.internal.ui.viewsupport.CDTContextActivator.install(CDTContextActivator.java:65)	at org.eclipse.cdt.ui.CUIPlugin.start(CUIPlugin.java:596)	at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842)	at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)	at java.security.AccessController.doPrivileged(Native Method)	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834)	... 108 more Root exception: java.lang.IllegalStateException: Workbench has not been created yet.	at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:95) 

and then later

!ENTRY org.eclipse.equinox.registry 4 1 2020-07-10 19:11:57.088 !MESSAGE Plug-in org.eclipse.cdt.ui was unable to load class org.eclipse.cdt.internal.ui.buildconsole.CBuildConsole. !STACK 0 java.lang.ClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.cdt.ui (23).	at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:126) 

So it looks as if org.eclipse.cdt.ui can not be loaded because org.eclipse.cdt.internal.ui.buildconsole.CBuildConsole can not be loaded.
org.eclipse.cdt.internal.ui.buildconsole.CBuildConsole is part of the package org.eclipse.cdt.internal.ui.buildconsole of the plugin org.eclipse.cdt.ui
org.eclipse.cdt.ui has always been a required plugin for io.sloeber.core. I added org.eclipse.cdt.internal.ui.buildconsole to the imported packages but to no avail.
I fail to find clues in the content of the pull request.
I have no clue how to further investigate/progress this issue

.log

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions