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

wsgen compilation ignores java compiler setting #111

Open glassfishrobot opened 11 years ago

glassfishrobot commented 11 years ago

wsgen goal ignores the compiler version and compiles generated code based on the java_home property. This generates "java.lang.UnsupportedClassVersionError: Bad version number in .class file" at runtime

Environment

Windows 7

Affected Versions

[2.2, 2.2.1]

glassfishrobot commented 11 years ago

Reported by kaushal_nith

glassfishrobot commented 11 years ago

@lukasj said: this is by design. If you need to compile generated sources with specific source/target level, you have to use 'xnocompile' together with properly bound phase in compiler-maven-plugin. There are other solutions to this chicken-egg problem as well.

adding support for explicit source/target level for javac compilation invoked by wsgen must be supported by jax-ws ri first, therefore marking this as an improvement

glassfishrobot commented 7 years ago

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