jaxb-v2 | : warning : This project is now part of the EE4J initiative | Code Editor library
kandi X-RAY | jaxb-v2 Summary
kandi X-RAY | jaxb-v2 Summary
:warning: This project is now part of the EE4J initiative. This repository has been archived as all activities are now happening in the corresponding Eclipse repository.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Moves nfa from startPos
- Builds the target node map .
- Writes the value of the object .
- can be null
- Add a property into a seed .
- Enter an XML element
- Moves forward to the next state in the state set .
- Calculate the type information .
- Visit an element .
- Add a complex type .
jaxb-v2 Key Features
jaxb-v2 Examples and Code Snippets
Community Discussions
Trending Discussions on jaxb-v2
QUESTION
According to Oracle documentation the schemagen tool is removed from the JDK as part of JEP 320 (http://openjdk.java.net/jeps/320). That JEP points to Maven artifacts that now supply the missing tools. The coordinates of the artifacts are wrong in the JEP, updated coordinates are found in an answer to this question: Which artifacts should I use for JAXB RI in my Maven project?
What is missing however is how to invoke the tools. There are shell scripts pointed to in the JEP that are in the JAXB-RI Git repository. However those scripts remain undocumented and difficult to invoke. The build instructions in that git repo indicated it is built with a standard "mvn clean install", however that does not produce an output structure that matches the 'bin' folder used in the documentation here: https://javaee.github.io/jaxb-v2/doc/user-guide/ch04.html#tools-schemagen
Ideally I would like to run schemagen from Gradle, avoiding the shell scripts as they are not obtained from the maven dependency.
My current attempt, adapted from a working version that called the old schemagen.exe, looks like this:
(There is more in the 'real' build.gradle file to specify my application's dependencies, etc.)
...ANSWER
Answered 2018-Jul-27 at 15:37The issue seems to be known with the jaxb-*:2.3.0
version - #jaxb-v2/issues/1168. Additionally, this would be resolved with a future release as marked in the known issues of jaxb running over java-9.
You can resolve this following the comment -
Please try 2.4.0-b180725.0644 - this is JPMS modularized RI working on JDKs with java.xml.bind module (9,10) and those without it (11-ea)
or try downloading the binary distribution from the same link.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jaxb-v2
You can use jaxb-v2 like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the jaxb-v2 component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page