This rule flags the use of the com.sun.xml.internal.bind.* packages. These packages
are no longer available in Java SE 11. These packages are internal and are not intended for
external use. However, if the application must continue using these packages, a possible solution is
to instead use the com.sun.xml.bind.* packages and include the required jaxb dependency
libraries in the application. The following is a sample of the maven dependency file to pull in the
required library to use the com.sun.xml.bind.* package:
This rule has an automatic fix to replace references of
com.sun.xml.internal.bind.* into com.sun.xml.bind.*. Copy the custom configuration to your application build file to enable the fix automation.
For more information on the Java 11 changes, see The Java 11 Migration Guide. For more information the removal of the com.sun.xml.bind directory, see the JEP entry for the Removal of the Java EE and CORBA Modules.