Discussion:
[tycho-user] org.eclipse.osgi.compatibility.state.PlatformAdminImpl installation
Ed Willink
2018-01-14 10:54:41 UTC
Permalink
Hi

Solved:
https://wiki.eclipse.org/Tycho/FAQ#How_do_I_install_the_org.eclipse.osgi.compatibility.state_fragment.3F

    Regards

        Ed Willink
Hi
A couple of my tests that work from a JUnit Plugin launch fail to work
with tycho-surefire.
The problem seems to be that PlatformAdminImpl is not started and so
many Eclipse services are not registered.
PlatformAdminImpl comes from the org.eclipse.osgi.compatibility.state
fragment that PDE activates but Tycho does not.
https://wiki.eclipse.org/Tycho/FAQ#How_to_test_OSGi_declarative_services.3F
suggests that a dependency might be the solution but
org.eclipse.osgi.compatibility.state is a fragment and so I am
defeated when it comes to specifying it in my target platform.
Referring to it as an "location" "unit" is clearly not right; the IU
in the target platform is ignored and the attempt to use Maven Central
crashes with a could not setup plugin ClassRealm for "indigo"!
Any clues on how to make PlatformAdminImpl start up?
    Regards
        Ed Willink
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Sievers, Jan
2018-01-15 08:18:05 UTC
Permalink
thanks for contributing to the FAQ

Jan

On 14.01.18, 11:54, "tycho-user-***@eclipse.org on behalf of Ed Willink" <tycho-user-***@eclipse.org on behalf of ***@willink.me.uk> wrote:

Hi

Solved:
https://wiki.eclipse.org/Tycho/FAQ#How_do_I_install_the_org.eclipse.osgi.compatibility.state_fragment.3F

Regards

Ed Willink
Hi
A couple of my tests that work from a JUnit Plugin launch fail to work
with tycho-surefire.
The problem seems to be that PlatformAdminImpl is not started and so
many Eclipse services are not registered.
PlatformAdminImpl comes from the org.eclipse.osgi.compatibility.state
fragment that PDE activates but Tycho does not.
https://wiki.eclipse.org/Tycho/FAQ#How_to_test_OSGi_declarative_services.3F
suggests that a dependency might be the solution but
org.eclipse.osgi.compatibility.state is a fragment and so I am
defeated when it comes to specifying it in my target platform.
Referring to it as an "location" "unit" is clearly not right; the IU
in the target platform is ignored and the attempt to use Maven Central
crashes with a could not setup plugin ClassRealm for "indigo"!
Any clues on how to make PlatformAdminImpl start up?
Regards
Ed Willink
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user

Loading...