Thanks for the answer. But I'm really in love with Apache Felix. If fragment bundles are not yet implemented, I'll wait and figure out myself in another way.
Right now I'm struggling with Apache libraries, but every other aspect is working nicely. Apache Felix is a very nice project. Thanks once again, Rodrigo On 9/27/07, Stuart McCulloch <[EMAIL PROTECTED]> wrote: > > Hi Rodrigo, > > On 26/09/2007, Rodrigo Madera <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > Does anyone have an example of how to create fragment bundles with > > maven-bundle-plugin? > > > > I have a bundle called Greeter-1.0.jar that needs some .properties files > > that will be read using Java standard ResourceBundles. > > I read that this can be accomplished by using fragment bundles to add > the > > properties files into the classloader. > > > it should be just a matter of adding the Fragment-Host header using this > syntax: > > Fragment-Host ::= bundle-description > bundle-description ::= symbolic-name (';' parameter ) * > > for example: > > Fragment-Host: com.greeter.text;version=1.0 > > maven resources (src/main/resources) should already be automatically > included > in the bundle - if not then you can use Include-Resource to explicitly add > missing > resources, or relocate resources as necessary. > > note - afaik fragment bundles are not fully supported in the Felix > framework, but > the resulting bundle should work on Equinox or Knopflerfish... > > Thanks for any input, > > Rodrigo > > > > > > -- > Cheers, Stuart >