You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2023/02/01 17:41:46 UTC

[Bug 57129] Regression. Load WEB-INF/lib jarfiles in alphabetical order

https://bz.apache.org/bugzilla/show_bug.cgi?id=57129

--- Comment #52 from Christopher Schultz <ch...@christopherschultz.net> ---
(In reply to Philippe Cloutier from comment #50)
> Typically, with Maven, if a project depends on 3 libraries and pom.xml lists
> B before A and finally C, the WAR file can contain b.jar before a.jar and
> finally c.jar. But it can also be alphabetical (a.jar, b.jar, c.jar).

You should have your project structured such that each dependency is isolated.
You should not, for example, have libfoo-with-dependencies.jar libbar.jar and
libbaz.jar if libfoo-with-dependencies.jar contains its own dependencies e.g.
classes from libbar.jar and libbaz.jar.

> I do not know how to avoid that besides
> ensuring that the WAR-s do not contain classes with identical fully
> qualified names.

They would have to be included in multiple JAR files.

this may be helpful for you:
https://github.com/ChristopherSchultz/duplicate-resource-finder

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org