BK, On 1/20/2022 8:57 AM, Brad K. wrote:
Hello --1. New Project -> Java with Maven2. Copy Primer.xsd from here (https://github.com/javaee/jaxb-v2/tree/master/jaxb-ri/samples/src/main/samples/partial-unmarshalling)3. File -> New -> JAX-B Binding 4. Binding name: Primer, file: navigate to file in ${project}/xsd/Primer.xsd package: primer5. Click finish. Ever so briefly see a progress bar that immediately disappears and nothing happens.No error messages, no exceptions. Click "Help" and get nothing. Is there something I need to do to enable the JAX-B Binding stuff? V/r, BK
Those classes are no longer in the JDK/JRE (along with activation). You'll need at least the following in your pom.xml:
<!-- java 11 removes a bunch of stuff --> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>javax.activation</groupId> <artifactId>activation</artifactId> <version>1.1.1</version> </dependency> Update to the latest versions as necessary. . . . . just my two cents /mde/
OpenPGP_signature
Description: OpenPGP digital signature