> On 28 Jun 2017, at 13:55, Thomas Kellerer <thomas.kelle...@mgm-tp.com> wrote: > >> Actually any JARs that you place under src/main/resources will be included >> in the bundle — just as in any other Maven project. > > But the jars are not stored in src/main/resources > > They simply declared as dependencies in the Maven pom.
I see, fair enough. Then you do need a bnd.bnd file with -includeresource when you really need to embed a dependent library… though I still assert that this is rarely necessary. > > >> 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. > > I need this because my portlets need those jar files. > > I have no idea how else I could use those libraries in my portlets if I do > not include them in the bundle. Import-Package. > > If I don't include them in the bundle, Liferay (Felix?) won't even load the > portlet. > > 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