Unsupported major.minor version 51.0 for generated web services in maven

806 views Asked by At

I've already done the research to know that this error means "I compiled with a newer version of java than I'm running the code on". The difference here is that this code that's giving me the error is generated by the jaxws-maven-plugin plugin. I can't figure out how to set the compile target/source on that plugin so I don't know how to resolve this issue. How do I set the target version for this plugin?

1

There are 1 answers

1
chrylis -cautiouslyoptimistic- On BEST ANSWER

The usage page seems to indicate that the JAX-WS plugin uses the standard source and target settings from maven-compiler-plugin.