Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Plugin builds with Tycho but cannot find imports in eclipse

Hi,

I've used this method to create OSGI bundle jar from the dependencies
https://flames-of-code.netlify.com/blog/maven-and-tycho-deps/

The actualy project for the dependcies can be found here:
https://github.com/nicky508/dependency_bundle

its installed in my local .m2 repository, referenced as a dependency in the parent pom.xml and referenced in the manifest.mf file of the module that needs the dependencies.

Mind you this work with maven tycho build, Eclipse does not seem to understand it.

Met Vriendelijke Groet / With Kind Regards
Bart van Leeuwen





From:        Johan Compagner <jcompagner@xxxxxxxxxx>
To:        Tycho user list <tycho-user@xxxxxxxxxxx>
Date:        13-11-2019 08:30
Subject:        Re: [tycho-user] Plugin builds with Tycho but cannot find imports        in eclipse
Sent by:        tycho-user-bounces@xxxxxxxxxxx




Are those external libs really osgi bundle?
Because in the end they need to be plugin that is bundled with your feature/product..

Under what container are they visible in the package explorer?

If they are under plugin dependencies then maybe your feature needs to include them as dependencies as well (not 100% sure that is really needed but they need to ship with it)

Op di 12 nov. 2019 22:08 schreef Bart van Leeuwen <bart@xxxxxxxxx>:
Hi,

We are developing a plugin and use maven and tycho for the build process.

This works fine up to the point that we started using external libraries.

We created a project which contains all the external dependencies and reference that in the manifest.


We can now build with maven and tycho and it works as expected,


In the eclipse development environment however the external dependencies are not resolved and cause error indicators in the Java editors.

I've searched for a couple of hours and looked at various options, but I'm now in the blue, any help is appreciated.


Met Vriendelijke Groet / With Kind Regards
Bart van Leeuwen
_______________________________________________
tycho-user mailing list

tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

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


Back to the top