mojohaus / jaxws-maven-plugin

https://www.mojohaus.org/jaxws-maven-plugin/
Apache License 2.0
25 stars 37 forks source link

Error on JDK10: -Xbootclasspath/p is no longer a supported option. #67

Open eolivelli opened 6 years ago

eolivelli commented 6 years ago

I get the same error even on JDK10

-Xbootclasspath/p is no longer a supported option.

Is there any workaround ?

Unfortunately -XX:+IgnoreUnrecognizedVMOptions does not help

I can send a patch, like if Java Version > 10 then do not add Xbootclasspath

alankila commented 6 years ago

Since the release of jdk 11, wsimport is no longer supplied with the JDK distribution. This broke my workaround for this issue in JDK versions 9 and 10, where I specified <executable>${java.home}/bin/wsimport</executable> into the pom.xml file to override the inclusion of the no-longer working option -Xbootclasspath/p into the command line. As far as I can tell, there is no long any way to use jaxws-maven-plugin on jdk 11 until the issue is fixed, perhaps in a new release.

theit commented 6 years ago

Can you have a look at my pull request #71? It contains fixes for invocation under Java 9-11, and at least on my machine it's not necessary anymore to specify an executable as a workaround for Java >=9.

hugo-ma-alves commented 6 years ago

Can you have a look at my pull request #71? It contains fixes for invocation under Java 9-11, and at least on my machine it's not necessary anymore to specify an executable as a workaround for Java >=9.

Thanks for the fix I tried your version on our project and it works on java 11. I added some more details about our setup on the PR comments page.

theit commented 6 years ago

Great to hear. Now let's wait for the project maintainers/owners what they think about the PR... ;-)

gmcouto commented 5 years ago

Yeah, I'm still waiting for these

HashRaygoza commented 5 years ago

Any news about this?

theit commented 4 years ago

Is this still an issue with version 2.6 of this plugin that was released recently?

adiesner commented 4 years ago

Is this still an issue with version 2.6 of this plugin that was released recently?

Upgrading from 2.5 to 2.6 fixed the issue for me.

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jaxws-maven-plugin</artifactId>
                <version>2.6</version>
 ...
niklaj commented 3 years ago

Can you have a look at my pull request #71? It contains fixes for invocation under Java 9-11, and at least on my machine it's not necessary anymore to specify an executable as a workaround for Java >=9.

The proposed fix does not solve the problem if the toolchains plugin is used as it is checking the module status for the current jvm (which might be java 8) and not for the toolchain jvm that might be java 9 or later.

pdudits commented 2 years ago

I've also hit same issue like @niklaj did, but since I think it is more specific than "Doesn't work on JDK 10", I filed new issue #94.