Replacement for wsimport with JDK 11












2














I'm currently working on a project which need wsimport but we use JDK11 and I just discovered that wsimport was removed from JDK since this version.



I searched for answers and I tried adding this dependency but it's not working at the moment.



     <dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.2.11</version>
</dependency>


Is there any replacement for wsimport that I'm not aware of ?



Thank you !










share|improve this question






















  • 2.3.1 is the latest version; try that!
    – Jacob G.
    Nov 12 '18 at 17:03










  • Use com.sun.xml.ws:jaxws-maven-plugin:2.3.2 from Jakarta EE (github.com/eclipse-ee4j/metro-jax-ws/tree/master/jaxws-ri/…) once it's released. Currently it's available in OSS Sonatype Staging repo (oss.sonatype.org/content/groups/staging/com/sun/xml/ws/…) and I hope will be released soon. For more details see github.com/javaee/metro-jax-ws/issues/1251 .
    – Male
    Dec 22 '18 at 1:19
















2














I'm currently working on a project which need wsimport but we use JDK11 and I just discovered that wsimport was removed from JDK since this version.



I searched for answers and I tried adding this dependency but it's not working at the moment.



     <dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.2.11</version>
</dependency>


Is there any replacement for wsimport that I'm not aware of ?



Thank you !










share|improve this question






















  • 2.3.1 is the latest version; try that!
    – Jacob G.
    Nov 12 '18 at 17:03










  • Use com.sun.xml.ws:jaxws-maven-plugin:2.3.2 from Jakarta EE (github.com/eclipse-ee4j/metro-jax-ws/tree/master/jaxws-ri/…) once it's released. Currently it's available in OSS Sonatype Staging repo (oss.sonatype.org/content/groups/staging/com/sun/xml/ws/…) and I hope will be released soon. For more details see github.com/javaee/metro-jax-ws/issues/1251 .
    – Male
    Dec 22 '18 at 1:19














2












2








2







I'm currently working on a project which need wsimport but we use JDK11 and I just discovered that wsimport was removed from JDK since this version.



I searched for answers and I tried adding this dependency but it's not working at the moment.



     <dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.2.11</version>
</dependency>


Is there any replacement for wsimport that I'm not aware of ?



Thank you !










share|improve this question













I'm currently working on a project which need wsimport but we use JDK11 and I just discovered that wsimport was removed from JDK since this version.



I searched for answers and I tried adding this dependency but it's not working at the moment.



     <dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.2.11</version>
</dependency>


Is there any replacement for wsimport that I'm not aware of ?



Thank you !







java spring wsimport






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 '18 at 17:02









Etienne Ringot

192




192












  • 2.3.1 is the latest version; try that!
    – Jacob G.
    Nov 12 '18 at 17:03










  • Use com.sun.xml.ws:jaxws-maven-plugin:2.3.2 from Jakarta EE (github.com/eclipse-ee4j/metro-jax-ws/tree/master/jaxws-ri/…) once it's released. Currently it's available in OSS Sonatype Staging repo (oss.sonatype.org/content/groups/staging/com/sun/xml/ws/…) and I hope will be released soon. For more details see github.com/javaee/metro-jax-ws/issues/1251 .
    – Male
    Dec 22 '18 at 1:19


















  • 2.3.1 is the latest version; try that!
    – Jacob G.
    Nov 12 '18 at 17:03










  • Use com.sun.xml.ws:jaxws-maven-plugin:2.3.2 from Jakarta EE (github.com/eclipse-ee4j/metro-jax-ws/tree/master/jaxws-ri/…) once it's released. Currently it's available in OSS Sonatype Staging repo (oss.sonatype.org/content/groups/staging/com/sun/xml/ws/…) and I hope will be released soon. For more details see github.com/javaee/metro-jax-ws/issues/1251 .
    – Male
    Dec 22 '18 at 1:19
















2.3.1 is the latest version; try that!
– Jacob G.
Nov 12 '18 at 17:03




2.3.1 is the latest version; try that!
– Jacob G.
Nov 12 '18 at 17:03












Use com.sun.xml.ws:jaxws-maven-plugin:2.3.2 from Jakarta EE (github.com/eclipse-ee4j/metro-jax-ws/tree/master/jaxws-ri/…) once it's released. Currently it's available in OSS Sonatype Staging repo (oss.sonatype.org/content/groups/staging/com/sun/xml/ws/…) and I hope will be released soon. For more details see github.com/javaee/metro-jax-ws/issues/1251 .
– Male
Dec 22 '18 at 1:19




Use com.sun.xml.ws:jaxws-maven-plugin:2.3.2 from Jakarta EE (github.com/eclipse-ee4j/metro-jax-ws/tree/master/jaxws-ri/…) once it's released. Currently it's available in OSS Sonatype Staging repo (oss.sonatype.org/content/groups/staging/com/sun/xml/ws/…) and I hope will be released soon. For more details see github.com/javaee/metro-jax-ws/issues/1251 .
– Male
Dec 22 '18 at 1:19












1 Answer
1






active

oldest

votes


















0














It's works, finally! Just in case someone has the same problem :



I wanted to use maven build to generate the sources, with this pom.xml :



<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.4.1</version>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>my.package</packageName>
<sourceDestDir>${project.build.directory}/generated-sources/jaxws-wsimport</sourceDestDir>
<keep>true</keep>
<executable>${java.home}/bin/wsimport</executable>
<wsdlDirectory>src/main/resources/schemas</wsdlDirectory>
<bindingFiles>
<bindingFile>${basedir}/src/bindings/binding.xjb</bindingFile>
</bindingFiles>
<target>2.1</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>


But the solution is to run wsimport directly with the console :



wsimport -d target/generated-sources/jaxws-wsimport/ -s target/generated-sources/jaxws-wsimport/ src/main/resources/schemas/myWSDLFile.wsdl


And of course, I'm using JDK 11






share|improve this answer

















  • 1




    JDK 11 does not have wsimport tool. So I am not sure how you are doing what you described.
    – Male
    Dec 22 '18 at 1:15










  • @male That's correct. I wonder how he achieved this.
    – Rohit Gaikwad
    Dec 31 '18 at 4:03











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266846%2freplacement-for-wsimport-with-jdk-11%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














It's works, finally! Just in case someone has the same problem :



I wanted to use maven build to generate the sources, with this pom.xml :



<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.4.1</version>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>my.package</packageName>
<sourceDestDir>${project.build.directory}/generated-sources/jaxws-wsimport</sourceDestDir>
<keep>true</keep>
<executable>${java.home}/bin/wsimport</executable>
<wsdlDirectory>src/main/resources/schemas</wsdlDirectory>
<bindingFiles>
<bindingFile>${basedir}/src/bindings/binding.xjb</bindingFile>
</bindingFiles>
<target>2.1</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>


But the solution is to run wsimport directly with the console :



wsimport -d target/generated-sources/jaxws-wsimport/ -s target/generated-sources/jaxws-wsimport/ src/main/resources/schemas/myWSDLFile.wsdl


And of course, I'm using JDK 11






share|improve this answer

















  • 1




    JDK 11 does not have wsimport tool. So I am not sure how you are doing what you described.
    – Male
    Dec 22 '18 at 1:15










  • @male That's correct. I wonder how he achieved this.
    – Rohit Gaikwad
    Dec 31 '18 at 4:03
















0














It's works, finally! Just in case someone has the same problem :



I wanted to use maven build to generate the sources, with this pom.xml :



<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.4.1</version>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>my.package</packageName>
<sourceDestDir>${project.build.directory}/generated-sources/jaxws-wsimport</sourceDestDir>
<keep>true</keep>
<executable>${java.home}/bin/wsimport</executable>
<wsdlDirectory>src/main/resources/schemas</wsdlDirectory>
<bindingFiles>
<bindingFile>${basedir}/src/bindings/binding.xjb</bindingFile>
</bindingFiles>
<target>2.1</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>


But the solution is to run wsimport directly with the console :



wsimport -d target/generated-sources/jaxws-wsimport/ -s target/generated-sources/jaxws-wsimport/ src/main/resources/schemas/myWSDLFile.wsdl


And of course, I'm using JDK 11






share|improve this answer

















  • 1




    JDK 11 does not have wsimport tool. So I am not sure how you are doing what you described.
    – Male
    Dec 22 '18 at 1:15










  • @male That's correct. I wonder how he achieved this.
    – Rohit Gaikwad
    Dec 31 '18 at 4:03














0












0








0






It's works, finally! Just in case someone has the same problem :



I wanted to use maven build to generate the sources, with this pom.xml :



<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.4.1</version>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>my.package</packageName>
<sourceDestDir>${project.build.directory}/generated-sources/jaxws-wsimport</sourceDestDir>
<keep>true</keep>
<executable>${java.home}/bin/wsimport</executable>
<wsdlDirectory>src/main/resources/schemas</wsdlDirectory>
<bindingFiles>
<bindingFile>${basedir}/src/bindings/binding.xjb</bindingFile>
</bindingFiles>
<target>2.1</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>


But the solution is to run wsimport directly with the console :



wsimport -d target/generated-sources/jaxws-wsimport/ -s target/generated-sources/jaxws-wsimport/ src/main/resources/schemas/myWSDLFile.wsdl


And of course, I'm using JDK 11






share|improve this answer












It's works, finally! Just in case someone has the same problem :



I wanted to use maven build to generate the sources, with this pom.xml :



<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.4.1</version>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>my.package</packageName>
<sourceDestDir>${project.build.directory}/generated-sources/jaxws-wsimport</sourceDestDir>
<keep>true</keep>
<executable>${java.home}/bin/wsimport</executable>
<wsdlDirectory>src/main/resources/schemas</wsdlDirectory>
<bindingFiles>
<bindingFile>${basedir}/src/bindings/binding.xjb</bindingFile>
</bindingFiles>
<target>2.1</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>


But the solution is to run wsimport directly with the console :



wsimport -d target/generated-sources/jaxws-wsimport/ -s target/generated-sources/jaxws-wsimport/ src/main/resources/schemas/myWSDLFile.wsdl


And of course, I'm using JDK 11







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 '18 at 12:56









Etienne Ringot

192




192








  • 1




    JDK 11 does not have wsimport tool. So I am not sure how you are doing what you described.
    – Male
    Dec 22 '18 at 1:15










  • @male That's correct. I wonder how he achieved this.
    – Rohit Gaikwad
    Dec 31 '18 at 4:03














  • 1




    JDK 11 does not have wsimport tool. So I am not sure how you are doing what you described.
    – Male
    Dec 22 '18 at 1:15










  • @male That's correct. I wonder how he achieved this.
    – Rohit Gaikwad
    Dec 31 '18 at 4:03








1




1




JDK 11 does not have wsimport tool. So I am not sure how you are doing what you described.
– Male
Dec 22 '18 at 1:15




JDK 11 does not have wsimport tool. So I am not sure how you are doing what you described.
– Male
Dec 22 '18 at 1:15












@male That's correct. I wonder how he achieved this.
– Rohit Gaikwad
Dec 31 '18 at 4:03




@male That's correct. I wonder how he achieved this.
– Rohit Gaikwad
Dec 31 '18 at 4:03


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266846%2freplacement-for-wsimport-with-jdk-11%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Florida Star v. B. J. F.

Danny Elfman

Lugert, Oklahoma