On 10/10/2022 13:34, Garret Wilson wrote:
On 10/10/2022 12:14 AM, Mark Thomas wrote:

That is a fairly old version. You should upgrade to the latest version first.

I certainly will. I first went through a long list of linting problems in the project; this was one of the things left over. I wanted to understand it more.

If you want to fix the warning, those are not the correct dependencies.

If you want the exact dependencies used with 9.0.50 then you can find them from the source code:

You want
bnd (not bndlib) 5.3.0
OSGi annotations 1.1.0


That's super helpful. I'll go look for those.

But could someone give a 1–3 sentence overview of what these libraries are and why Tomcat uses them? Or is there a wiki page explaining that already?

The bnd library is used to generate JPMS and OSGI metadata for the Tomcat JARs. Most of the metadata is generated from scanning the JARs but where code uses the ServiceLoader, the annotation is required so that bnd can generate the correct service dependencies.

The annotation is only used by bnd during the build. It is not used at runtime.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to