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

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
My blog - My Tweets