[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] bundle builds using Maven
- From: "Stuart McCulloch" <stuart.mcculloch@xxxxxxxxxx>
- Date: Wed, 16 May 2007 08:21:51 +0800
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=dNgBj/iOL06ndJjCtJKDB2pj9WmKdUmRXfrP+aNnKuYpXhRDBppRFN9Z0yXaYE/+mjCezo8AhTxprCFyLz1VPLuCIUOR/PGVLg1Rk4ICA4TnKfesNdq1SvfTCwRJzOOK6ZVoMhbAJprhgpEkaWPNnluKL0xnKQGx3OY04R/mZFU=
On 15/05/07, Aaron Siri <Aaron.Siri@xxxxxxx> wrote:
My organization has been attempting to use the Maven build process as
described in the "Building Eclipse Plugins with Maven 2" by the Princeton
Softech guys to build a set of Equinox/OSGi bundles (not Eclipse plugins.)
I've successfully gotten a single bundle to build but am having problems
with cross-bundle dependencies. I have an aggregator/super-pom that
contains two modules – A and B. B, as defined in the manifest, depends on
A. A builds fine, but when B attempts to build it can't find A to build
against. Is this situation supposed to work?
I've made a slight modification to the Princeton Softech Maven plugin that
uses the bundle package "prefix" as the group Id (i.e.
com.company.product.bundle would use "com.companyu.product" as the group
id.) When the build errors out due to failed dependency resolution it is
looking for the artifact that I would expect it to (group id and artifact id
I haven't used the PST plugin myself, but you might want to check the
manifest has a version for module B, and also that module B has been
correctly installed in the Maven repository.
The compilation can resolve the Equinox (3.3M7) bundles from the manifest
(using the group id change described above) and can find the artifacts in
the repo without issue. It is just this cross-module building issue that
A related question I have is what is the common method of building equinox
bundles? Do most people just use the PDE tools included in Eclipse?
A lot of people just use the PDE tooling, but there are other options
like Peter Kriens' BND tool which can be used as an Eclipse plugin
(see http://www.aqute.biz/Code/Bnd) and is also available in Maven
using the maven-bundle-plugin from the Apache Felix project.
Personally, I use my own set of scripts to simplify creating bundles
These scripts take a different approach to PST, in that dependencies
must be specified in the Maven poms and the manifest is generated
from the code and the BND directives. Eclipse integration is minimal
at the moment, but is being actively improved.
equinox-dev mailing list