So, quick update:
JAXB Plugin is released to the Common Update Center
minimumJavaVersion is set to 8 unless it blows up
Released as 2.2.11 with minimumJavaVersion set on Java 8.
There are few plugins using this plugin as a dependency
Only SlocCount has been tested successfully in https://github.com/jenkinsci/sloccount-plugin/pull/53. I need to redo tests for completeness with https://github.com/jenkinsci/jenkins/pull/3865 (see below), but basically this is just automating the plugin detachment, which I tested manually, so I don't anticipate any new issue.
I don't know of another plugin that would be easy enough to try.
I'm actually considering creating a simple plugin that would exercise the various cases around Java 11 known issues (JAXB as here, but also JAF, java.sql, etc.)
JAXB Plugin as a detached plugin on Java 11 + (Core patch), and it's bundled into WAR
We need to explore whether it is feasible. It may be helpful to keep plugins compatible without patches on the plugin side
https://github.com/jenkinsci/jenkins/pull/3865 is in review to add the support in Jenkins for detaching plugins for a min Java runtime version (Java 11 in this case)
- In this PR, I had to add various exclusions to break dependency cycles and avoid a StackOverflowError. This is really growing ugly, and Jesse hinted about implementing JENKINS-28942 already.
- JENKINS-28942 does indeed look to me like the right long term correction: this is the only way we can avoid adding JAXB to the long and growing list of detached plugins, and hence hope cleaning up this from the Core in the future. Without this, basically we will not be really able to know what plugin use of doesn't use JAXB.
Jetty && SLOCCount Plugin
Tomcat && SLOCCount Plugin