This project is used in a JavaEE 7 application which should be upgraded to the new JakartaEE 9.1 on JDK 16. During this process I recognized that there are multiple errors while running maven for this project:
The generated JAXB classes should always use English for class comments. My machine used German and produced some errors because of umlauts.
bnd-maven-plugin had to be updated because of a ConcurrentModificationException
xmlutils-core 2.8.2 depents on the newer jakarta.xml.bind-api while the JDK 11 build profile still used the older javax.xml.bind dependency. This produced some more errors - like not found modules (jakarta.activation) or same packages/classes from multiple JARs.
Adjusted the JDK 9 build profile to included required --add-opens - and as a workaround (because of missing resources during test) the resources of src/main as additional classpath element.
Added the transformer plugin from Eclipse to automatically produce a Jakarta-namespace compatible jar file (classifier jakarta)
Tested build process with JDK 8, 11, 13-16
This project is used in a JavaEE 7 application which should be upgraded to the new JakartaEE 9.1 on JDK 16. During this process I recognized that there are multiple errors while running maven for this project:
bnd-maven-plugin
had to be updated because of a ConcurrentModificationExceptionxmlutils-core 2.8.2
depents on the newerjakarta.xml.bind-api
while the JDK 11 build profile still used the olderjavax.xml.bind
dependency. This produced some more errors - like not found modules (jakarta.activation
) or same packages/classes from multiple JARs.--add-opens
- and as a workaround (because of missing resources during test) the resources ofsrc/main
as additional classpath element.jakarta
)