mraible opened a new pull request, #257:
URL: https://github.com/apache/roller/pull/257

   `mvn jetty:run` printed about 1,525 warnings before Roller started. After 
this change it prints three, the XML schema notices noted below.
   
   - **"scanned from multiple locations" (1,525 lines):** the Jetty plugin's 
GlassFish WaSP JSP engine and the webapp's GlassFish JSTL jar ship the same 
shaded BCEL, java_cup and XPath classes, and Jetty warns once per class. 
Leaving WaSP out of `containerIncludeJarPattern` doesn't help, because Jetty 
scans it for its `ServletContainerInitializer` anyway. Both jars are needed, so 
`.mvn/jvm.config` sets `org.eclipse.jetty.annotations.AnnotationParser` to 
ERROR for Maven runs.
   - **`java.lang.foreign.Linker` restricted method:** Lucene's memory-mapped 
index reads. `.mvn/jvm.config` adds `--enable-native-access=ALL-UNNAMED`, which 
JDK 17 through 25 accept.
   - **"Java vector incubator module is not readable":** enabling 
`jdk.incubator.vector` just makes the JVM warn about incubator modules, so 
`log4j2.xml` keeps only errors from `org.apache.lucene.internal.vectorization`. 
This one also applies to deployed sites.
   
   `.mvn/jvm.config` has no comment syntax, so it's excluded from the license 
check. `mvn apache-rat:check` passes.
   
   I ran `jetty:run` with these changes. The login and setup-token pages 
render, and the only warnings left are three "The XML schema [XMLSchema.dtd / 
datatypes.dtd / xml.xsd] could not be found" lines, which don't matter since 
XML validation is off.
   
   On Tomcat, operators who want to drop the native-access warning can add the 
same flag to `CATALINA_OPTS`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to