Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] How to extend tycho-osgi-runtime via TychoOsgiRuntimeArtifacts?

another thing is to make sure the plexus descriptors are generated, like in

https://github.com/eclipse/tycho/blob/5951a62696123bff26cead593ca54d7b124a70e6/pom.xml#L365-L377

otherwise dependency injection will not happen

Regards
Jan

On 17.10.17, 08:46, "tycho-user-bounces@xxxxxxxxxxx on behalf of Sievers, Jan" <tycho-user-bounces@xxxxxxxxxxx on behalf of jan.sievers@xxxxxxx> wrote:

    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
        
        
        
        
        
        
        
        
        
        
    
    _______________________________________________
    tycho-user mailing list
    tycho-user@xxxxxxxxxxx
    To change your delivery options, retrieve your password, or unsubscribe from this list, visit
    https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top