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
I'm not sure if this is an error or a documentation issue.
I'm upgrading to Java 17 Gradle 7.4.1 and after multiple attempts to get wsimport working, I succeeded. However, when building the project, I get an error: error: package jakarta.xml.bind.annotation does not exist import jakarta.xml.bind.annotation.XmlAccessType;
This follows for all different annotations XmlAccessorType, XmlElement, XmlRootElement, XmlType...
I don't know if this is related to a mapping issue like: #179
Here is my gradle file with the appropriate sections shown:
plugins {
id 'idea'
id 'groovy'
id 'codenarc'
id 'maven-publish'
id 'org.springframework.boot' version '2.6.4'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
}
group = 'com.mygroup'
sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
}
ext['groovy.version'] = '3.0.10'
configurations {
jaxws
}
dependencies {
...
jaxws('com.sun.xml.ws:jaxws-tools:4.0.0')
jaxws('jakarta.xml.ws:jakarta.xml.ws-api:4.0.0')
jaxws('jakarta.xml.bind:jakarta.xml.bind-api:4.0.0')
jaxws('jakarta.activation:jakarta.activation-api:2.1.0')
jaxws('com.sun.xml.ws:jaxws-rt:4.0.0')
}
task wsimport {
description = 'Generate classes from wsdl using wsimport'
def wsdlFile = file("${projectDir}/src/main/resources/wsdl/myWsdl.wsdl")
def bindingFile = file("${projectDir}/src/main/resources/wsdl/myWsdl.xjb")
ext.classesDir = "${projectDir}/src/main/java/"
doLast {
ant {
mkdir(dir: classesDir)
taskdef(name: 'wsimport',
classname: 'com.sun.tools.ws.ant.WsImport',
classpath: configurations.jaxws.asPath
)
wsimport(
destdir: "${classesDir}",
sourcedestdir: "${classesDir}",
extension: "true",
verbose: "false",
quiet: "false",
package: "generated.soap.models",
xnocompile: "true",
binding: "${bindingFile}",
wsdl: "${wsdlFile}")
}
}
}
compileJava {
dependsOn wsimport
source wsimport.classesDir
}
...
The text was updated successfully, but these errors were encountered:
I'm not sure if this is an error or a documentation issue.
I'm upgrading to Java 17 Gradle 7.4.1 and after multiple attempts to get wsimport working, I succeeded. However, when building the project, I get an error:
error: package jakarta.xml.bind.annotation does not exist import jakarta.xml.bind.annotation.XmlAccessType;
This follows for all different annotations XmlAccessorType, XmlElement, XmlRootElement, XmlType...
I don't know if this is related to a mapping issue like: #179
Here is my gradle file with the appropriate sections shown:
The text was updated successfully, but these errors were encountered: