You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the #988 i have investigated on the com.sun.xml.ws:jaxws-maven-plugin behavior.
As far as i understand, the m2e plugin doesn't rely on the maven toolchain.
This is perfectly ok, however it appears that the jaxws-maven-plugin is not run using the project associated jdk but instead the eclipse jdk.
As the wsgen goal implies java source compilation and so bytecode generation, this leads to runtime errors when the project jdk and testing process are not aligned with the eclipse jdk.
hello @kwin,
Thank you for pointing me to that document.
So yes i realize i need to give some extra precision on how to reproduce the case.
This occurs during an build triggered by eclipse, eg updating / cleaning (Menu -> maven -> update project, Project -> clean).
Unless i am mistaken the setup you point is related to manual maven build, is that correct ?
(aka Run As -> M2e maven build ...).
By putting a breakpoint in the jaxws-maven-plugin wsgen mojo i am able to monitor which jdk is in used when it s executed.
It s not the jdk17 as one would expect but the jdk21 (eclipse one).
hello,
Following the #988 i have investigated on the com.sun.xml.ws:jaxws-maven-plugin behavior.
As far as i understand, the m2e plugin doesn't rely on the maven toolchain.
This is perfectly ok, however it appears that the jaxws-maven-plugin is not run using the project associated jdk but instead the eclipse jdk.
As the wsgen goal implies java source compilation and so bytecode generation, this leads to runtime errors when the project jdk and testing process are not aligned with the eclipse jdk.
You may want to use the following sample :
https://github.com/andre-doherty/sample-jaxws
And monitor the bytecode using this command :
watch -d -n 1 'find target -type f -name "GetAll*" | xargs file'
Using :
Eclipse.org Eclipse Platform 4.34.0.v20241120-1800 org.eclipse.platform
Eclipse.org - m2e M2E Maven Integration for Eclipse Core 2.7.0.20241126-1642 org.eclipse.m2e.feature
André
The text was updated successfully, but these errors were encountered: