[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] "Nested Equinox instance is not supported" in a custom mojo

You should be able to consume Equinox and Tycho services from thirdparty
mojos, just don't try to force multiple instances of singleton
components. For Equinox this means you need to contribute additional
bundles to the same framework instance used by tycho, not start new one.
IIRC, Equinox and P2 use system properties quite heavily, so all users
must share the same framework instance to work properly.


On 12-10-05 3:57 AM, Mickael Istria wrote:
Hi all,

I'm trying to write Mojo to resolve use-case described in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=389052 (Create p2 repo
from content of a .target file, using p2 mirroring). I rely on Tycho
0.16.0-SNAPSHOT in my plugin. When I try to use it an a test project
(which also depends on Tycho 0.16.0-SNAPSHOT), the Mojo fails telling

java.lang.IllegalStateException: Nested Equinox instance is not supported
	at org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.start(DefaultEquinoxEmbedder.java:59)

Seems like this issue can happen using different versions of Tycho in
the same reactor, but it's not the case here. Also, my plugin is a "pom"
packaging type, not a Tycho one. Could it be a cause of the issue? If
yes, is there any good reason for preventing 3rd-party plugin from
consuming Equinox and services from Tycho?

Thanks in advance.
Mickael Istria
Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
My blog <http://mickaelistria.wordpress.com> - My Tweets

_______________________________________________ tycho-user mailing list tycho-user@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/tycho-user