Actually any JARs that you place under src/main/resources will be included in the bundle — just as in any other Maven project.
But I’m wondering why you need to do this? Embedding JAR files should be a rarely used technique, for example when wrapping an external non-OSGi dependency for use in OSGi. If lots of your bundles need to embed JARs then something very strange is going on. Regards, Neil > On 28 Jun 2017, at 13:46, Thomas Kellerer <thomas.kelle...@mgm-tp.com> wrote: > > Thanks for the quick reply, however I could not include any needed jar files > in the bundle without using "-includeresource:" in the bnd file for all > dependent jar files. > > Thomas > > Neil Bartlett schrieb am 28.06.2017 um 14:40: >> Just a quick note: the bnd.bnd file is NOT required by the biz.aQute.bnd >> plugins. It is only used when you need to do something special in a bundle >> definition like a custom annotation header. >> >> Sorry I can’t answer your question about metatype with the >> maven-bundle-plugin. >> >> Regards, >> Neil >> >> >>> On 28 Jun 2017, at 13:35, Thomas Kellerer <thomas.kelle...@mgm-tp.com> >>> wrote: >>> >>> Hello, >>> >>> I am fighting with getting my portlets to run with Liferay 7 and the whole >>> OSGi environment. >>> >>> So far the Felix Maven plugin was a big help because I don't have to manage >>> all the JAR file dependencies in my pom.xml *andÜ the bnd.bnd file that is >>> required by the biz.aQute.bnd plugins. >>> >>> However, one thing I can't get working with the maven plugin is the >>> equivalent of >>> >>> -metatype: * >>> >>> in the bnd.bnd file which is required for the configuration stuff to work >>> in Liferay 7. >>> >>> I tried >>> >>> <_metatypeannotations>*</_metatypeannotations> >>> >>> and >>> >>> <_metatypes>*</_metatypes> >>> >>> in the <instructions> section of the Maven plugin, but that didn't work. >>> When using biz.aQute.bnd plugin the corresponding directive scans the >>> classes for meta annotations and generates a corresponding XML file in >>> OSGI_INF/metatype/ inside the jar file. >>> >>> How can I get that to work with the Felix Maven plugin? >>> >>> Thanks >>> Thomas >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org >>> For additional commands, e-mail: users-h...@felix.apache.org >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org >> For additional commands, e-mail: users-h...@felix.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org