Could Not Initialize Class Org.apache.maven.plugin.war.util.webappstructureserializer May 2026

Happy building! 🚀

rm -rf ~/.m2/repository/org/apache/maven/plugins/maven-war-plugin Happy building

Specifically, the War Plugin (versions 3.3.x) relies on JAXB (Java Architecture for XML Binding) to serialize the webapp structure into XML. Starting with Java 9, JAXB was removed from the default JDK module path. If you're running on without explicitly adding JAXB dependencies, you'll encounter this error. you'll encounter this error.