Where are going to look at two different things.
1) First, we want to make sure that Maven is using the JAR files we think it is using.
In your home directory, create the file mavenrc_pre.bat containing:
This option causes the JVM to print out each class loaded and the JAR file it comes from. You will want to redirect stdout and sterr when running mvn:
Examine the build.log file looking for JAR files being loaded from unusual places, and specifically where the cxf JAR file is located.
2) Second, lets examine the classes in the cxf JAR file to see what their version number is.
First, you will have to extract one or more of the class files - the org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo class implements the wsdl2java mojo, so it's the best bet. You can open the JAR file with most zip utilities, such as WinZip or 7zip (right-click the JAR and select Open With other and then select the zip util from the list). If you don't have those, you can extract the entire JAR using:
where <path> is the full path location of the JAR in your local repository.
Once you have the class files extracted, you can get the version number using (warning: lots of output, you might want to redirect to a file):
Look for the major and minor version entries:
Wikipedia lists the version numbers:
http://en.wikipedia.org/wiki/Java_class_file
According to it, major version 50 == JDK 6