Avatar billede fredand Forsker
02. april 2013 - 10:58 Der er 1 kommentar

Can I change the out-put-package from xmlbeans-maven-plugin?

Hello!
(I'm from sweden, feel free to answer in danish.)
Embarrassing, I think I have done this before but now I can not remeber how.

We got system A that communcate with system B with xml in JMS.
The interface-spec is an xsd that we generate the interface classes from.

How ever system B has now updated ths xsd, but uses the same package names like: systemb.version1.XObject, instead of
systemb.VERSION2.XObject.

Since system B is not sure if they need to roll-back we would like to be able to use different versions of the interfaces like in an app.properties-file like:
#message-impl=systemb.version1.XObject
message-impl=systemb.version2.XObject

... Then we easily could shift between the implementations.

Correct me if I'm wrong when I say that I could change the output of the package name with xmlbeans-maven-plugin. So even if the xsd says something in "xmlns:" I can override it?
(We use xmlbeans-maven-plugin 2.3.3 btw.)

If you guys got any info about this please let me know!
Best regards
Fredrik
Avatar billede fredand Forsker
02. april 2013 - 11:53 #1
Hello Guys!

I think I found it in some old projects.

It looks you can do this with xsdconfig.

Best regards
Fredrik
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester