Looks like the OSGi runtime should be extensible but I never tried this. You may have to add it as a maven core build extension so the classloader sees it, i.e. <extensions>true</extensions> similar to tycho itself, see [1]. this where you would have to start debugging (mvnDebug): https://github.com/eclipse/tycho/blob/master/tycho-core/src/main/java/org/eclipse/tycho/osgi/runtime/TychoOsgiRuntimeLocator.java#L122 Regards Jan [1] https://github.com/eclipse/tycho-demo/blob/7f78a458a4b368472995610a338ac5e68c2b7709/itp01/pom.xml#L31 On 16.10.17, 23:43, "tycho-user-bounces@xxxxxxxxxxx on behalf of Marco Lehmann-MÃrz" <tycho-user-bounces@xxxxxxxxxxx on behalf of mlehmannm@xxxxxxxxx> wrote: Hello everybody, I want tycho to include my osgi-bundle into its runtime. (It registers a custom url via org.osgi.service.url.URLStreamHandlerService.) It does not work. What a tried so far: 1. I wrote the osgi bundle that provides the service (BTW: build with tycho). 2. I wrote a maven extension that exports a plexus component with role TychoOsgiRuntimeArtifacts and hint mycustomurl. 3. I registered the extension in the parent pom of another tycho build where I want tycho to use my custom url in p2 repository loading. The extension is never loaded. Any ideas? -- Tschà Marco
↧
Re: [tycho-user] How to extend tycho-osgi-runtime via TychoOsgiRuntimeArtifacts?
↧