Replacement for wsimport with JDK 11
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
add a comment |
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
2.3.1
is the latest version; try that!
– Jacob G.
Nov 12 at 17:03
Usecom.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 at 1:19
add a comment |
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
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
java spring wsimport
asked Nov 12 at 17:02
Etienne Ringot
212
212
2.3.1
is the latest version; try that!
– Jacob G.
Nov 12 at 17:03
Usecom.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 at 1:19
add a comment |
2.3.1
is the latest version; try that!
– Jacob G.
Nov 12 at 17:03
Usecom.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 at 1:19
2.3.1
is the latest version; try that!– Jacob G.
Nov 12 at 17:03
2.3.1
is the latest version; try that!– Jacob G.
Nov 12 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 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 at 1:19
add a comment |
1 Answer
1
active
oldest
votes
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
JDK 11 does not have wsimport tool. So I am not sure how you are doing what you described.
– Male
Dec 22 at 1:15
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
JDK 11 does not have wsimport tool. So I am not sure how you are doing what you described.
– Male
Dec 22 at 1:15
add a comment |
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
JDK 11 does not have wsimport tool. So I am not sure how you are doing what you described.
– Male
Dec 22 at 1:15
add a comment |
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
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
answered Nov 13 at 12:56
Etienne Ringot
212
212
JDK 11 does not have wsimport tool. So I am not sure how you are doing what you described.
– Male
Dec 22 at 1:15
add a comment |
JDK 11 does not have wsimport tool. So I am not sure how you are doing what you described.
– Male
Dec 22 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 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 at 1:15
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
2.3.1
is the latest version; try that!– Jacob G.
Nov 12 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 at 1:19