Igor, thanks for the response.
On 10/20/2008 10:25 AM, Igor Fedorenko wrote: > Sorry for the late response, somehow missed this email on Friday. No problem :) > > Our initial focus for tycho was (and still is) building eclipse plugins > developed with PDE. That's exactly my focus too. > As such, tycho requires all dependencies to be OSGi > bundles and uses build target platform to resolve dependencies. Next dev > build will have initial target platform management support, however, and > can use bundles coming from maven repository. I'm looking forward to trying this out. > > As far as I know, httpclient jar does not have necessary OSGi manifest > attributes, and cannot be directly used in a tycho build. Our current > approach is to "wrap" such artifacts into OSGi bundles (see, for example, > how we include maven embedder into m2e) Let me clarify that httpclient is just an example. Making it and my other 3rd party artifacts to be OSGi bundles is the easy part. I've planned to deploy them then to my group repository. However, for my internally developed artifacts it's a different story. All of them are Eclipse plugins. I want to build them through a CI framework (probably Continuum) and deploy them also to the group repository. Then, members of my team can work on individual plugins and the plugins' OSGi dependencies (as expressed in MANIFEST.MF) are resolved from the group repository. That's my plan in a nutshell. Having a target platform in this picture where a base set of plugins are resolved from is fine, too. > but I am open for suggestions > about how to make consumption of plain JARs in tycho builds easier. I wouldn't cater to consuming plain Jars in general with Tycho. I would target OSGi bundles only instead. If there was a way to map an OSGi dependency into a Maven coordinate, and Maven/Tycho was able to resolve the OSGi dependency from a Maven repository, that might make the consumption of OSGi bundles easier. -Max > >> I have a MANIFEST.MF declaring this dependency: >> Require-Bundle: org.apache.commons.httpclient >> >> I'm trying to stick the httpclient Jar into my local repository so that >> Maven/Tycho can resolve this dependency. >> >> I tried several combinations of groupId, artifactId and version when >> installing >> my artifact into the local repository, but I am unable to make this error >> go >> away: >> >> Resolution errors: >> Bundle mybundle - Missing Constraint: Require-Bundle: >> org.apache.commons.httpclient; bundle-version="0.0.0" >> >> What would be the correct coordinate? >> >> Is Maven/Tycho able to resolve Eclipse plugin dependencies from the local >> repository? >> >> Thanks! >> -Max --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email