Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho + Eclipse RCP + Maven dependencies

Dear List,

I'm not getting any further with this. Perhaps it's a problem with the 3rd party Maven repository I'm getting the dependencies from (https://korpling.german.hu-berlin.de/~annis/maven2/saltnpepper/) or I'm doing something wrong here.

I'm considering a different approach. Am I right in the assumption that I could build my own OSGi bundles from the dependency JARs, and add them to my bundles MANIFEST.MF as dependencies?

Thanks, and sorry for the newb questions.
Stephan

Quoting Stephan Druskat <stephan.druskat@xxxxxxxxxxx>:

Thanks. In the meantime I had found the same solution, so I added the repository as well as the three dependencies to the parent POM, and added
<pomDependencies>consider</pomDependencies>
to the target-platform-configuration's <configuration> section.

Now I get the error message that the artifacts are missing, but when I remove the <type>bundle</type> tags from the dependencies, one resolves and now only two are missing (all in the same repo, and I've checked their names as well).

What could this be?

Thanks,
Stephan

Zitat von "Oberlies, Tobias" <tobias.oberlies@xxxxxxx>:

You need to get the bundles from the Maven repository into your target platform. This is described here: http://wiki.eclipse.org/Tycho/Target_Platform#.22POM_dependencies_consider.22

Regards
Tobias


-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
bounces@xxxxxxxxxxx] On Behalf Of Stephan Druskat
Sent: Mittwoch, 11. Januar 2012 12:50
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Tycho + Eclipse RCP + Maven dependencies

Dear All,

As a newbie to both Eclipse RCP and Tycho, I'm trying to get my head
round on how to define dependencies when using Tycho.

I have a simple example case, and if anybody would be able to help me
with it, I'm hopeful that I'll be able to understand if and how Tycho
can help me, and how I can solve issues like this in the future.

I have a feature-based RCP project (1 plugin, 1 feature, parent
project, repository project, with a .target Target Definition
(indigo.target, which contains the 3.7.1 SDK) which I make available
via build-helper-maven-plugin. This builds fine.

Now I need 3 different bundles from a Maven repository in my plugin
project. Before I switched to RCP, I was able to simply add those and
the repo to my POM and they would be accessible in the application
("simple" Java, not RCP).

Now I've read that this won't work when I use Tycho. What can I do to
add these dependencies?

Many thanks in advance, and sorry for posting such a noob question here.
Stephan

----------------------------------------------------------------
This message was sent through https://webmail.uni-jena.de

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




----------------------------------------------------------------
This message was sent through https://webmail.uni-jena.de

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




----------------------------------------------------------------
This message was sent through https://webmail.uni-jena.de



Back to the top