[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tycho-user] "Nested Equinox instance is not supported" in a custom mojo
- From: Igor Fedorenko <igor@xxxxxxxxxxxxxx>
- Date: Fri, 05 Oct 2012 06:50:57 -0400
- Delivered-to: email@example.com
- User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
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:
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
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.
Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
My blog <http://mickaelistria.wordpress.com> - My Tweets
tycho-user mailing list