[jbosstools-dev] Test failing with Luna? Try the org.eclipse.osgi.compatibility.state fragment!
Mickael Istria
mistria at redhat.com
Fri Nov 29 13:10:17 EST 2013
Hi all,
As part of Luna came a change that we've not correctly estimated:
http://wiki.eclipse.org/Equinox/Luna_Framework#Removal_of_the_PlatformAdmin_Service_Implementation
. This cause some parts of Eclipse to be failing with surefire as they
depend on a class which is not available in default Equinox bundles any
more. The TEMPORARY workaround is to add a dependency to your
tycho-surefire-plugin to fragment org.eclipse.osgi.compatibility.state.
So in case of failing test, try to add the fragment locally, and if it
works better, open a bug to keep track of that change (make me a dep of
JBIDE-16161). This should be fine for JBT 4.2.0.Alpha1 build and tests
against Luna M3.
Then by Luna M4, this should happen:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=417429 , and hopefully, it
will remove most of our dependencies on this somehow deprecated
PlatfromAdmin service. We'll be able to get rid of the additional
dependency on surefire, and everything will be fine.
In case you have a message in your tycho-surefire-plugin saying "Could
not acquire PlatformAdmin", you can safely ignore it
https://bugs.eclipse.org/bugs/show_bug.cgi?id=417429 . It's just a
warning. What's important is whether your tests do work or not, and if
not, whether adding the fragment helps.
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
My blog <http://mickaelistria.wordpress.com> - My Tweets
<http://twitter.com/mickaelistria>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbosstools-dev/attachments/20131129/3590f5f2/attachment.html
More information about the jbosstools-dev
mailing list