This will analyze a list of directories in an XSD and convert each one to a JAR file.
Since it works on a docker container basis, it doesn't have to take into account the java version of the host machine.
- Inside the
xsddirectory, place the files you want to convert. An example is shown below.
./xsd
├── animals
│ ├── Cat.xsd
│ ├── Dog.xsd
├── students
├── Liam.xsd
└── John.xsd
-
You must have docker installed.
-
Clone the
xsd2jarproject.
[email protected]:kimjbstar/xsd2jar.git
-
Run the container via
docker compose up. -
Verify that the directory and the
jarfiles of the same name have been created.
./xsd
├── animals
│ ├── Cat.xsd
│ ├── Dog.xsd
├── students
│ ├── Liam.xsd
│ └── John.xsd
├── animals.jar
└── students.jar