|
|
|
Re: java.lang.SecurityException on maven build with Xtext and XCore from Mars [message #1703260 is a reply to message #1703232] |
Wed, 29 July 2015 21:01 |
Richard Melvin Messages: 9 Registered: July 2009 |
Junior Member |
|
|
Just to dump the results here in case it helps someone else (or me next year):
The signature conflict is between the jars org.eclipse.core.runtime 3.7.0 and org.eclipse.equinox.common 3.6.200, because both have the package org.eclipse.core.runtime, but only the former has class Plugin.
org.eclipse.emf.codegen.ecore.genmodel.util.GenModelUtil references org.eclipse.jdt.core.JavaCore which references many classes from org.eclipse.core.runtime including Plugin. So it ends up with half of each package, hence the error.
To get things to work, I needed to fiddle things until the bundle org.eclipse.core.runtime was searched before org.eclipse.equinox.common. This wasn't as simple as copying the example, as I was using tycho and there were other dependencies involved, but once I understood what was going on, it was just trial and error.
Can't help but thing there is something fundamentally flawed about the design of one or more of OSGI, eclipse or tycho here given everything is so fragile. Beneath jar hell there is a deeper pit where things only work if jars are in the right order, and you can't directly specify the order...
|
|
|
Powered by
FUDForum. Page generated in 0.03273 seconds