Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Eclipse Equinox bundle needs Maven dependencies

You can consume a Maven build in tycho by using <considerPomDependencies>true</considerPomDependencies> in the Maven build itself. However, PDE won't know about those bundles which might make it difficult if they are compile time (as opposed to run-time) dependencies.

In order to build in PDE and depend on Maven-acquired resources, you'll need to create a target platform that consists of those bundles and point PDE to it. Alternatively, download the bundles and make them available as local PDE projects (File -> Import -> Plug-in development -> Plug-ins and fragments).

Finally you can always install the bundles into the running Eclipse runtime. If you install pax-mvn you can then go into the host OSGi console and type 'install mvn:groupid:artifactid:version' and have it that way. However, you'll need to do this each time Eclipse starts which makes it less practical.


On 28 Jun 2013, at 11:00, Daniel McGreal wrote:

> Hi,
> I have found the Target Platform configuration and have, for now, added in a location to which my maven build copies dependencies. This is OK I think, but I also found which looks promising, but I'm not yet sure what aspects of Tycho and this plugin I would need to coordinate to achieve what I want.
> Thanks, Dan.
> On 27 Jun 2013, at 17:24, Daniel McGreal wrote:
>> Hi,
>> I've started to develop a bundle I wish to run inside Eclipse Equinox (or some other OSGi framework) and I believe that the typical way to achieve this is to make a new Plug-in project. This went well until I tried to also include Maven dependencies.
>> Is this a use-case for Tycho? Essentially I'd like to be able to still run the bundle from Eclipse using the OSGi Application run configuration, but I'd also like to be able to select maven dependencies in the "Target Platform" section of the run configuration. Is this achievable with Tycho?
>> Many thanks for any assistance,
>> Dan.
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx

Back to the top