entur / netex-java-model

Java JAXB binding classes for NeTEx xsd schema
European Union Public License 1.2
10 stars 13 forks source link

Incompatible with NeTEx V1.2 #43

Open Celludriel opened 2 years ago

Celludriel commented 2 years ago

Hey,

We are trying to get started with NeTEx in Belgium, and I wanted to create java pojo's from the latest netex xsd's being 1.2. However first of our company is a windows company and my first hurdle was to make sure this repo worked on windows. After I had fixed that I tried running it and I ended up with one error after another, some I could fix others I could not.

Will you still maintain this repository ? Are you in close contact with the NeTEx people themselves ? It doesn't seem you can use any of the xsd's in their present form in anything technical ?

I found your latest maven released model 1.0.13, will you update it to 1.2 ?

skinkie commented 2 years ago

Hi @Celludriel, and "waves as NeTEx people".

This repository works under Java, Java practically works under Windows, so which problems do you face? Have you considered just to create the jar in a Virtual Machine and use that for developement (it may already be in some maven repository).

The current XSDs can directly work in xjc (the standard Java generator) this repository uses another Java generator, it also works directly in xsData. If you talk about not being able to use it in its present form, it feels like you are using the XSD in another tool or even with a completely different programming language. The 1.2 release is just a bug fix release, correcting typo's etc.

Celludriel commented 2 years ago

Hey Skinkie,

The binary executables are in bash script for linux, when I do a mvn clean install on windows this doesn't work since you implement the executable plugin in maven. However I have been translating them from linux bash to windows cmd script and that was progressing. Eventually running the maven cxf plugin I end up with a lot of errors.

I opened up this issue on the NeTEx github: https://github.com/NeTEx-CEN/NeTEx/issues/307

I'm not sure if what I wrote is actually accurate maybe I need to write xjb bindings to separate the multiple definitions, but since they are all in the same namespace not sure that works. I'm not a Jaxb2 expert I occasionally use it in projects usually with a lot simpeler or self made xsd files.

I haven't found the 1.2 version in any mvn repository yet, the only one I found was your 1.0.13 version made 2021-09-16