Closed Belaslav closed 1 year ago
First, I can reproduce the issue also on an ArchLinux system. Additionally, these warnings also appear inside the jetty docker container.
If I search for classpath issues only for the project itself (mvn duplicate-finder:check
), I only get 3 warnings.
All these are only generated during "Checking test classpath".
So, no issues on the classpath during compile or runtime.
In my opinion this is justifiable.
io.netty.channel
org.apache.commons.logging
But as stated, Jetty throws many classpath warning for the fop
package.
Further investigations shows that there might be a conflict inside the fop
package (the apache fop all in one packge) itself.
The warnings disappear if only the fop-core
instead of the whole fop
package is used.
PlantUML also seems to work fine only with the fop-core
package.
At the time of this analysis/tests fop
2.8, Jetty 11.0.15 and PlantUML 1.2023.8 were up to date.
Also note: All dependencies from the fop
package are also included inside the fop-core
package.
As long as the fop
package does not provided special implementations switching to the fop-core
package shouldn't make any difference.
Describe the bug When running a local instance of PlantUML server via
mvn jetty:run
, there are multiple warnings about classes being scanned from multiple locations:[WARNING] org.apache.fop.util.text.LocatorFormatter scanned from multiple locations: jar:file:///home/belaslav/.m2/repository/org/apache/xmlgraphics/fop/2.8/fop-2.8.jar!/org/apache/fop/util/text/LocatorFormatter.class, jar:file:///home/belaslav/.m2/repository/org/apache/xmlgraphics/fop-core/2.8/fop-core-2.8.jar!/org/apache/fop/util/text/LocatorFormatter.class
To Reproduce Steps to reproduce the behavior:
git clone https://github.com/plantuml/plantuml-server.git
plantuml-server
dirmvn jetty:run
Expected behavior No warnings.
Desktop (please complete the following information):