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?
Asked
Active
Viewed 792 times
1
-
Why are you deploying to a Java 5 runtime? Even the official Java 6 is EOL now. – chrylis -cautiouslyoptimistic- Aug 30 '13 at 18:09
-
@SotiriosDelimanolis interesting... so it only generates source? – Daniel Kaplan Aug 30 '13 at 18:12
-
@chrylis I *believe* I'm deploying to a 1.6 environment. I'm assuming that I'm compiling using 1.7, though. – Daniel Kaplan Aug 30 '13 at 18:13
-
@tieTYT Sorry, got my numbers for 6 and 7 confused. – chrylis -cautiouslyoptimistic- Aug 30 '13 at 18:14
-
1@SotiriosDelimanolis The `wsimport` goal runs during `generate-sources`, but the `wsgen` runs during `process-classes`, and the options for the goal indicate that by default it generates and immediately compiles its output classes. – chrylis -cautiouslyoptimistic- Aug 30 '13 at 18:16
1 Answers
1
The usage page seems to indicate that the JAX-WS plugin uses the standard source
and target
settings from maven-compiler-plugin
.

chrylis -cautiouslyoptimistic-
- 75,269
- 21
- 115
- 152
-
This didn't solve *my* problem but it will probably help anyone else searching. I had a PEBCAK issue. My IDE was set to compile to 1.7 without my intention. – Daniel Kaplan Aug 30 '13 at 18:38