Changes from RCP 4.9 to 4.10? [message #1800461] |
Fri, 28 December 2018 19:46 |
Christian Derksen Messages: 11 Registered: September 2017 |
Junior Member |
|
|
Hi there,
we have used tycho to build our RCP application for some time now. With a new Eclipse RCP release, we also moved forward with our target platform; normally without any problems.
With the update to the 2018-12 version of Eclipse RCP (4,10), we now have problems to build our 'core' bundle since the build process will be interrupted with the following error message:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.3.0:compile (default-compile) on project org.agentgui.core: Compilation failure: Compilation failure:
[ERROR] D:\20 GIT\01_AgentGui-OSGI\eclipseProjects\org.agentgui\bundles\org.agentgui.core\src\agentgui\envModel\graph\controller\NetworkModelFileImporter.java:
[ERROR] /**
[ERROR] ^
[ERROR] The type org.eclipse.swt.graphics.Image cannot be resolved. It is indirectly referenced from required .class files
[ERROR] 1 problem (1 error)
The funnny or confusing thing is that this class (NetworkModelFileImporter.java) even does not need any SWT stuff and that, if we build based on Eclipse RCP 4.9, we don't have any problems.
If this is a bug, I can report this to Bugzilla too.
If somebody has suggestions, please let me know.
Best wishes,
Christian
|
|
|
|
|
Re: Changes from RCP 4.9 to 4.10? [message #1800709 is a reply to message #1800588] |
Sun, 06 January 2019 19:25 |
Christian Derksen Messages: 11 Registered: September 2017 |
Junior Member |
|
|
Could it be of help, to know the dependecies of the bundle? If yes, these are the bundles that are required by the bundle 'org.agentgui.core':
Require-Bundle: de.enflexit.api,
de.enflexit.common,
de.enflexit.oidc,
de.enflexit.oshi,
de.enflexit.db.hibernate,
de.enflexit.db.mySQL,
org.agentgui.lib.scimark,
org.agentgui.lib.jade,
org.agentgui.lib.jFreeChart,
org.agentgui.lib.jung,
org.agentgui.lib.jep,
org.agentgui.lib.googleTranslate,
ch.qos.logback.classic,
ch.qos.logback.core,
org.eclipse.core.runtime,
org.eclipse.ui,
org.eclipse.e4.core.di,
org.eclipse.e4.ui.model.workbench,
org.eclipse.e4.ui.services,
org.eclipse.e4.ui.workbench,
org.eclipse.e4.ui.di,
org.eclipse.equinox.p2.operations,
org.eclipse.equinox.p2.metadata,
org.eclipse.osgi.services
Additionally we import:
javax.inject;,
org.slf4j;
|
|
|
|
Re: Changes from RCP 4.9 to 4.10? [message #1800789 is a reply to message #1800758] |
Tue, 08 January 2019 11:52 |
Peter Pinnau Messages: 10 Registered: October 2015 |
Junior Member |
|
|
Brian de Alwis wrote on Mon, 07 January 2019 20:52That's likely because you're trying to build using a 32-bit platform. With 4.10, all 32-bit platforms have been removed.
Thanks! I removed 32-bit targets. After that the plugins can be build but the product build fails:
EDIT: Got it working. There was an old entry "org.eclipse.equinox.ds" in the start-level configuration of the product.
The product build failed with:
Cannot complete the install because one or more required items could not be found.
Software being installed: System Concept DMS 1.3.36 (System Concept DMS 1.3.36)
Missing requirement: toolinggtk.linux.x86_64org.eclipse.equinox.ds 1.3.36 requires 'osgi.bundle; org.eclipse.equinox.ds 1.5.200.v20180827-1235' but it could not be found
Cannot satisfy dependency:
From: System Concept DMS 1.3.36 (System Concept DMS 1.3.36)
To: org.eclipse.equinox.p2.iu; toolingSystem Concept DMS.configuration [1.3.36,1.3.36]
Cannot satisfy dependency:
From: toolingSystem Concept DMS.configuration 1.3.36
To: org.eclipse.equinox.p2.iu; toolinggtk.linux.x86_64org.eclipse.equinox.ds [1.3.36,1.3.36]
[Updated on: Tue, 08 January 2019 12:06] Report message to a moderator
|
|
|
Re: Changes from RCP 4.9 to 4.10? [message #1800791 is a reply to message #1800789] |
Tue, 08 January 2019 12:16 |
Eclipse User |
|
|
|
Your first error is standard Maven behaviour when failing to resolve an artifact. Usually can be cured by running Maven with -U or removing the artifact's ~/.m2/repository/GAV/*.lastUpdate. Did you really fork Tycho?
The second problem is that you're explicitly including the Equinox Declarative Services implementation bundle (org.eclipse.equinox.ds) which was removed in 2018-12 -- Equinox shares the same implementation with Apache Felix and the org.eclipse.equinox.ds bundle was really just a wrapper to pull in the org.apache.felix.scr bundle. As Tycho 1.3 now supports resolving p2 and OSGi capabilities, and the Eclipse bundles now use these capabilities to express a requirement for DS, you don't need to explicitly reference the DS bundle.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03655 seconds