2024-07-02

jaxb2-maven-plugin 2.5.0 package javax.xml.bind.annotation does not exist

 





Not working

<!--

[ERROR]

.../generated/AcademicTitleCode.java:[11,33]

package javax.xml.bind.annotation does not exist

-->

<dependency>

<groupId>jakarta.xml.bind</groupId>

<artifactId>jakarta.xml.bind-api</artifactId>

<!--

<version>4.0.0</version>

-->

</dependency>

<dependency>

<groupId>com.sun.xml.bind</groupId>

<artifactId>jaxb-impl</artifactId>

<!--

<version>4.0.0</version>

<scope>runtime</scope>

-->

</dependency>

<!--

<dependency>

<groupId>org.glassfish.jaxb</groupId>

<artifactId>jaxb-runtime</artifactId>

<version>4.0.0</version>

</dependency>

-->


Resolved by:

<!--

https://github.com/FasterXML/jackson-modules-base/discussions/239

-->

<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->

<dependency>

<groupId>javax.xml.bind</groupId>

<artifactId>jaxb-api</artifactId>

<version>2.3.1</version>

</dependency>







No comments:

Post a Comment