Ich bin gerade dabei, ein Java -Projekt von Java 11 auf Java 21 zu aktualisieren. Nachdem ich das JDK gewechselt und verwandte Abhängigkeiten, Bibliotheken usw. aktualisiert hatte, stieß ich auf ein Problem mit dem Maven Javadoc -Plugin. Der Build schlägt mit Fehlern im Zusammenhang mit javax.xml.bind fehl, obwohl ich in meiner Codebasis nirgendwo JAXB- oder Javax -APIs verwende. Speziell der Fehler, den ich folgende erhalte: < /p>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.5.0:aggregate (javadoc-output-html) on project X: An error has occurred in Javadoc report generation:
[ERROR] Exit code: 1
[ERROR] warning: unknown enum constant XmlAccessType.FIELD
[ERROR]   reason: class file for javax.xml.bind.annotation.XmlAccessType not found
< /code>
Hier ist meine Abhängigkeitsbaumausgabe, wenn es hilft: < /p>
[INFO] |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics:jar:1.11.1:compile
[INFO] |  |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics-runtime:jar:1.11.1:compile
[INFO] |  |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics-tools:jar:1.11.1:compile
[INFO] |  |  \- org.glassfish.jaxb:jaxb-runtime:jar:4.0.5:compile
[INFO] |  |     \- org.glassfish.jaxb:jaxb-core:jar:4.0.5:compile
[INFO] |  |        +- org.glassfish.jaxb:txw2:jar:4.0.5:compile
[INFO] |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics:jar:1.11.1:compile
[INFO] |  |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics-runtime:jar:1.11.1:compile
[INFO] |  |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics-tools:jar:1.11.1:compile
[INFO] |  |  \- org.glassfish.jaxb:jaxb-runtime:jar:4.0.5:compile
[INFO] |  |     \- org.glassfish.jaxb:jaxb-core:jar:4.0.5:compile
[INFO] |  |        +- org.glassfish.jaxb:txw2:jar:4.0.5:compile
[INFO] |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics:jar:1.11.1:compile
[INFO] |  |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics-runtime:jar:1.11.1:compile
[INFO] |  |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics-tools:jar:1.11.1:compile
[INFO] |  |  \- org.glassfish.jaxb:jaxb-runtime:jar:4.0.5:compile
[INFO] |  |     \- org.glassfish.jaxb:jaxb-core:jar:4.0.5:compile
[INFO] |  |        +- org.glassfish.jaxb:txw2:jar:4.0.5:compile
[INFO] |     |  +- org.jvnet.jaxb2_commons:jaxb2-basics:jar:1.11.1:compile
[INFO] |     |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics-runtime:jar:1.11.1:compile
[INFO] |     |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics-tools:jar:1.11.1:compile
[INFO] |     |  \- org.glassfish.jaxb:jaxb-runtime:jar:4.0.5:compile
[INFO] |     |     \- org.glassfish.jaxb:jaxb-core:jar:4.0.5:compile
[INFO] |     |        +- org.glassfish.jaxb:txw2:jar:4.0.5:compile
[INFO] |  |     |  +- org.jvnet.jaxb2_commons:jaxb2-basics:jar:1.11.1:compile
[INFO] |  |     |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics-runtime:jar:1.11.1:compile
[INFO] |  |     |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics-tools:jar:1.11.1:compile
[INFO] |  |     |  \- org.glassfish.jaxb:jaxb-runtime:jar:4.0.5:compile
[INFO] |  |     |     \- org.glassfish.jaxb:jaxb-core:jar:4.0.5:compile
[INFO] |  |     |        +- org.glassfish.jaxb:txw2:jar:4.0.5:compile
[INFO] |     |  +- org.jvnet.jaxb2_commons:jaxb2-basics:jar:1.11.1:compile
[INFO] |     |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics-runtime:jar:1.11.1:compile
[INFO] |     |  |  +- org.jvnet.jaxb2_commons:jaxb2-basics-tools:jar:1.11.1:compile
[INFO] |     |  \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.8:compile
[INFO] |     |     +- org.glassfish.jaxb:txw2:jar:2.3.8:compile
[INFO] |  |  |  \- org.jvnet.jaxb2_commons:jaxb2-basics:jar:1.11.1:compile
[INFO] |  |  |     +- org.jvnet.jaxb2_commons:jaxb2-basics-runtime:jar:1.11.1:compile
[INFO] |  |  |     +- org.jvnet.jaxb2_commons:jaxb2-basics-tools:jar:1.11.1:compile
[INFO] |  |  +- com.sun.xml.bind:jaxb-impl:jar:2.3.8:compile
[INFO] |  |  +- org.glassfish.jaxb:jaxb-runtime:jar:4.0.5:compile
[INFO] |  |  |  \- org.glassfish.jaxb:jaxb-core:jar:4.0.5:compile
[INFO] |  |  |     +- org.glassfish.jaxb:txw2:jar:4.0.5:compile
< /code>
Ich bemerke eine widersprüchliche Version 'com.sun.xml.bind: jaxb-impl: jar: 2.3.8: kompile', dass ich nicht herausfinden kann, wo es von ihnen gezogen wird. Code. 
Versucht, JAXB-Abhängigkeiten von meinen Plugin-Konfigurationen auszuschließen.>
			
			
			
			
						Das Upgrade auf Java 21 verursacht Javax.xml.bind Fehler vom Maven Javadoc -Plugin trotz keiner direkten Verwendung ⇐ Java
- 
				- Similar Topics
- Replies
- Views
- Last post
 
 Mobile version
 Mobile version