what i've done so far, and I think you may find useful, it's a new recursivebundle goal that will iterate through all dependency tree, both direct and transitive dependencies, and generate a bundle for each of them. You won't need to play with the dependency plugin.
FELIX-199 http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-bundle-plugin/ It still needs some polishing but will be finished soon. On 2/6/07, Chris Custine <[EMAIL PROTECTED]> wrote:
My solution isn't exactly automatic and transparent because you need to create a maven pom.xml, but what I do is create a simple pom that lists the original jar as a dependency, uses the dependency-maven-plugin to extract the contents to target/classes, and then uses the maven-bundle-plugin to package as a bundle. I do this for all 3rd party jars that I need to package as bundles and I just keep them in a large project in SVN and then my CI builds rebuild when I make changes and deploy to my internal maven repository. I use bnd from a command line to figure out what the imports are, etc. before creating the pom. I realize from your question that you probably want something transparent without maintaining a pom, but I think what you are asking for can be done with a little tweaking... I have attached a sample pom.xml from one of my projects. Chris On 2/6/07, Carlos Sanchez <[EMAIL PROTECTED]> wrote: > This may be more a BND question, but here it goes > > Is there a way to generate a bundle that matches exactly the contents > of a jar (besides the manifest of course)? > > For what I've seen so far you need to pass the whole classpath to BND > so it can generate import headers with versions, and EXPORT_PACKAGE to > tell it what packages you want. i'm looking for an easy way to to > express export everything in this jar and nothing else. IIRC that was > the way the osgi maven plugin worked, creating bundles 1 to 1 from > jars. > > tia > > -- > I could give you my word as a Spaniard. > No good. I've known too many Spaniards. > -- The Princess Bride >
-- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride