Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Maven Integration (M2E) » [tycho] Adding custom dependencies
[tycho] Adding custom dependencies [message #21296] Wed, 28 January 2009 13:16 Go to next message
Matthias Treitler is currently offline Matthias TreitlerFriend
Messages: 117
Registered: July 2009
Senior Member
Hi Igor,

I am developing a project where I am using Spring DM. In the Tycho Wiki it
is stated that a pom.xml should NOT contain <dependency/> sections. This
is because the dependencies are calculated from the Manifest.MF and
resolve against the target platform, right?!

Now Spring DM includes some OSGi bundles (for instance
"org.springframework.bundle.osgi.extender") which are started at the very
beginning to make some initialization. None of mine plug-in depends on
this one, because it does not have to.
So now I want that these Spring bundles are also managed within Maven.
Normally you would add some dependency sections in your pom.xml file (like
it is shown here
http://static.springframework.org/osgi/demos/integration-tes t-demo/part-1/int-testing-part1.html
) but with Tycho I am not allowed to do this!

How can I solve such an issue?!?

Cheers,
Matthias
Re: [tycho] Adding custom dependencies [message #21503 is a reply to message #21296] Wed, 28 January 2009 15:19 Go to previous message
Eclipse UserFriend
Originally posted by: igor.ifedorenko.com

Matthias,

It is possible to add additional bundles and features to the build
target platform using dependencyManagement section of pom.xml (see [1]
for example). Tycho will resolve these depenedncies from maven
repositories and add them to the build target platform. Unfortunately,
this likely is not enough for these bundles to be "started at the very
beginning to make some initialization".

I don't know much about SpringDM myself, but if you provide sample
project(s) and explain expected behaviour I will have a look.


[1]
http://svn.sonatype.org/m2eclipse/tycho/trunk/tycho-its/proj ects/tycho164/build02/pom.xml

Matthias Treitler wrote:
> Hi Igor,
>
> I am developing a project where I am using Spring DM. In the Tycho Wiki
> it is stated that a pom.xml should NOT contain <dependency/> sections.
> This is because the dependencies are calculated from the Manifest.MF and
> resolve against the target platform, right?!
>
> Now Spring DM includes some OSGi bundles (for instance
> "org.springframework.bundle.osgi.extender") which are started at the
> very beginning to make some initialization. None of mine plug-in depends
> on this one, because it does not have to. So now I want that these
> Spring bundles are also managed within Maven. Normally you would add
> some dependency sections in your pom.xml file (like it is shown here
> http://static.springframework.org/osgi/demos/integration-tes t-demo/part-1/int-testing-part1.html
> ) but with Tycho I am not allowed to do this!
>
> How can I solve such an issue?!?
>
> Cheers,
> Matthias
>
Previous Topic:m2eclipse snapshot and normal releases
Next Topic:[tycho] Newbie: Current capabilities of Tycho
Goto Forum:
  


Current Time: Thu Apr 25 17:51:23 GMT 2024

Powered by FUDForum. Page generated in 0.03548 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top