Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Tycho » Possible to use bundles as dependencies for maven jar projects?
Possible to use bundles as dependencies for maven jar projects? [message #643268] Mon, 06 December 2010 10:34 Go to next message
Bernd Vogt is currently offline Bernd Vogt
Messages: 34
Registered: July 2009
Member
Hello,

is it possible to use Bundles (Jars) - that are shared via p2 update
sites or are stored in the p2 folder of the local repository - as normal
dependecies in a maven project with packaging "jar"?

Kind regards,
Bernd
Re: Possible to use bundles as dependencies for maven jar projects? [message #643635 is a reply to message #643268] Tue, 07 December 2010 16:47 Go to previous messageGo to next message
Jan Sievers is currently offline Jan Sievers
Messages: 23
Registered: July 2009
Junior Member
It is not possible to reference an artifact coming from a p2 repository (not
available from any maven repo) from a maven project with packaging type jar.

In general mixing POM-first and MANIFEST-first is not recommended as the
dependency resolution works completely differently.

Regards
Jan

"Bernd Vogt" <bernd.vogt@innovations.de> wrote in message
news:idie05$e1m$1@news.eclipse.org...
> Hello,
>
> is it possible to use Bundles (Jars) - that are shared via p2 update sites
> or are stored in the p2 folder of the local repository - as normal
> dependecies in a maven project with packaging "jar"?
>
> Kind regards,
> Bernd
Re: Possible to use bundles as dependencies for maven jar projects? [message #725107 is a reply to message #643635] Wed, 14 September 2011 00:19 Go to previous message
Dick Fardos is currently offline Dick Fardos
Messages: 4
Registered: September 2011
Junior Member
Jan Sievers wrote on Tue, 07 December 2010 11:47
It is not possible to reference an artifact coming from a p2 repository (not
available from any maven repo) from a maven project with packaging type jar.

In general mixing POM-first and MANIFEST-first is not recommended as the
dependency resolution works completely differently.


This seems to make Tycho completely useless for anything other than simple eclipse plugins that don't use anything other than standard eclipse plugin jars from the eclipse releases site. I have the same issue as the original poster. I have some OSGi jars that I need to use in my eclipse plugin project, but I also have to use maven to do nightly builds on our build machine. Eclipse plug-ins and OSGi jars in general need dependencies listed in the manifest. The beauty of maven is having it pull down it's list of dependencies for you at build time based upon what's in the pom.xml. Why can't we do this? This is not a edge case for normal development. If tycho can't do this, then I'm not sure what the purpose of it is.
Previous Topic:adding eclipselink
Next Topic:better eclipse-plugin examples with dependencies?
Goto Forum:
  


Current Time: Sat Oct 25 01:37:41 GMT 2014

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

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