|Re: [tycho-user] Plugin builds with Tycho but cannot find imports in eclipse|
> Mind you this work with maven tycho build, Eclipse does not seem to > understand it.Well its a little bit more complex. From the beginning, "Eclipse" does not even understand Java-Code, so there comes JDT into play... next JDT does not know anything about OSGi, so PDE kicks in. Now PDE does not understand Maven/Tycho configuration... so maybe (not sure how complex this would be) tycho could provide a m2e connector that understand the tycho/maven stuff and either tell JDT or PDE about the artfacts from maven.
That would then be some kind of hybrid pde/maven project configuration. Am 13.11.19 um 09:42 schrieb Bart van Leeuwen:
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_bundleits 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:30Subject: Re: [tycho-user] Plugin builds with Tycho but cannot find imports in eclipseSent 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 <email@example.com_ <mailto: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_ firstname.lastname@example.org_ <mailto: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@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visithttps://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