javaee / metro-jaxws-commons

Metro has been contributed to Eclipse Foundation. This repository is for legacy review only. Please refer to the Eclipse EE4J Metro project for the very latest
https://eclipse-ee4j.github.io/metro-wsit/
Other
10 stars 9 forks source link

Passing XJC plugins does not work at all #131

Open glassfishrobot opened 9 years ago

glassfishrobot commented 9 years ago

According to this one can simply declare a dependency to a XJC plugin and pass the xjcArg and that's it.

This is simply pointless and does not work. This plugin spawns a shell and passes all necessary stuff. The dependency is never used. One must add -B-classpah and PATH TO ALL JARS -B-Xinheritance.

It ends with this:

<xjcArg>-classpath</xjcArg>

                        <xjcArg>${settings.localRepository}/org/jvnet/jaxb2_commons/jaxb2-basics/0.6.5/jaxb2-basics-0.6.5.jar;${settings.localRepository}/org/jvnet/jaxb2_commons/jaxb2-basics-tools/0.6.5/jaxb2-basics-tools-0.6.5.jar;;${settings.localRepository}/org/jvnet/jaxb2_commons/jaxb2-basics-runtime/0.6.5/jaxb2-basics-runtime-0.6.5.jar;D:\mvn-repository\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;${settings.localRepository}/commons-lang/commons-lang/2.4/commons-lang-2.4.jar</xjcArg>
                        <xjcArg>-Xinheritance</xjcArg>

This works with -Xcommons-lang but not for plugins with a custom namespace in the bindings file. Though, this is a different (wsimport) issue.

Affected Versions

[2.3]

glassfishrobot commented 9 years ago

Reported by michael-o

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAX_WS_COMMONS-131