From Java 11 onwards, the package is called jakarta.xml.bind
instead. It is also no longer part of the JRE/JDK (i.e. the standard library), so you have to add these Maven coordinates for an additional dependency: jakarta.xml.bind:jakarta.xml.bind-api:4.0.2
(probably a newer version when you read this).