nilsmagnus / wsdl2java

Gradle plugin for generating java source from wsdl files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No output at all but no error and task is "successfull"

lamba92 opened this issue · comments

I have no clue why. The wsdl file is public and it's this one.

Plugin configuration:

wsdl2javaExt {
    cxfVersion = "3.2.7"
    closureOf<Wsdl2JavaTask> {
        locale = Locale.UK
        stabilizeAndMergeObjectFactory = true
        wsdlsToGenerate = arrayOf(arrayOf("$projectDir/src/main/resources/dedevicemgmt.wsdl"))
    }
}

Using Kotlin Gradle DSL. Should I import CXF as well into project dependencies?

Did you check your build folder? To my big surprise - even though specifying folder "$projectDir/src/main/java" the generated sources are placed within build folder...

Try this:

tasks.wsdl2java {
    wsdlDir = file("$projectDir/src/main/resources")
    wsdlsToGenerate = arrayListOf(arrayListOf("$projectDir/src/main/resources/dedevicemgmt.wsdl"))
    stabilizeAndMergeObjectFactory = true
}