Just to let you know, the problem was due to an older version of Felix framework (2.0.4) while now I got it working with Felix 3.0.3 version without changing configuration of the Maven Bundle Plugin. :-) Tommaso
2010/10/11 Marshall Schor <[email protected]> > We're using the "jar" packaging, in order to pick up all the standard > boiler > plate we have for Jars, such as including the Apache License and Notice > files, > as I recall. > > Also, I think I tried "bundle", and it failed to resolve maven $ properties > correctly - I think it's needed for the <finalName> element, where it picks > up > the osgi-style version number as part of the name. > > The _exportcontents is there instead of Export-Package because we're using > <embedDependency> to get all the dependency artifacts listed. Using > Export-Package causes duplication, > according to > > http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html#ApacheFelixMavenBundlePlugin%28BND%29-EmbedDependencyandExportPackage > > I do see that that site says this duplication may not be an issue if you > "inline" the dependencies, which we do, but this would need to be > confirmed. > > Maybe some more investigation as to why this packaging doesn't just work > already > in Apache Felix is needed. > > -Marshall > > On 10/11/2010 2:37 AM, Tommaso Teofili wrote: > > Hi all, > > I am doing some work with Apache Felix and tried to run uimaj-ep-runtime > as > > a bundle inside it. > > I managed to do that changing the <_exportcontents> tag with > > <Export-Package> and changing its <packaging> from 'jar' to 'bundle'. > > As I think this could be a good enhance but I don't want to break > backward > > (or other use cases) compatibility I'd like to know what do you think > about > > such a change. > > Regards, > > Tommaso > > >
