maven-jetty-plugin v 11.0.19 is in the myApp-server module, jetty:run output shows around 80 warnings such as:
[WARNING] jakarta.servlet.AsyncEvent scanned from multiple locations:
jar:file:///C:/Users/tim_m/.m2/repository/org/eclipse/jetty/toolchain/jetty-jakarta-servlet-api/5.0.2/jetty-jakarta-servlet-api-5.0.2.jar!
jar:file:///C:/Users/tim_m/.m2/repository/org/eclipse/jetty/toolchain/jetty-jakarta-servlet-api/5.0.2/jetty-jakarta-servlet-api-5.0.2.jar!
jetty-server is a declared dependency in the myApp-jettyMain module (the embedded server for production), jetty-jakarta-servlet-api is pulled in by jetty-server; myApp-jettyMain:jar is a dependency of myApp-server.
Although these scan paths are identical the warnings don't look good & slow up jetty start time.
There's a clue is in the debug output of jetty:run which shows jetty-jakarta-servlet-api is scanned from 2 Container paths ?
[DEBUG] Container paths selected:[file:///C:/Users/tim_m/.m2/repository/org/eclipse/jetty/toolchain/jetty-jakarta-servlet-api/5.0.2/jetty-jakarta-servlet-api-5.0.2.jar, file:///C:/Users/tim_m/.m2/repository/jakarta/servlet/jsp/jstl/jakarta.servlet.jsp.jstl-api/2.0.0/jakarta.servlet.jsp.jstl-api-2.0.0.jar, file:///C:/Users/tim_m/.m2/repository/org/glassfish/web/jakarta.servlet.jsp.jstl/2.0.0/jakarta.servlet.jsp.jstl-2.0.0.jar]
I presume this is relevant to the warnings? I've looked at several posts related to this, most refer to earlier jetty versions. Its usually a problem with dependencies but none of the dependencies I have added to this small sample make reference to these Container paths afaik.