'Jaxb generating Java from multiple .xsd Files failed

i'm having this error and have no idea how it comes to this: it worked the last time I checked and I haven´t made any single change

Build file 'D:\getVersionSoap\build.gradle' line: 134

Execution failed for task ':genJaxb'.
unable to parse the schema. Error messages should have been provided

Here is the piece of code:

"Line 134" is the line "xjc(destdir: sourcesDir)"

task genJaxb {

ext.sourcesDir = "${buildDir}/generated_sources/jaxb"
ext.classesDir = "${buildDir}/classes/jaxb"
ext.schemaDir = "${projectDir}/src/main/resources"

outputs.dir sourcesDir

doLast() {
    project.ant {
        taskdef name: "xjc", classname: "com.sun.tools.xjc.XJCTask",
                classpath: configurations.jaxb.asPath
        mkdir(dir: sourcesDir)
        mkdir(dir: classesDir)

        xjc(destdir: sourcesDir) {
            schema(dir: schemaDir, includes: "**/ /* *.xsd")
            arg(value: "-wsdl")
            produces(dir: sourcesDir, includes: "**/ /* *.java")
        }

        javac(destdir: classesDir, source: 1.8, target: 1.8, debug: true,
                debugLevel: "lines,vars,source",
                classpath: configurations.jaxb.asPath,
                includeantruntime: "false") {
            src(path: sourcesDir)
            include(name: "**/ /* *.java")
            include(name: "*.java")
        }

        copy(todir: classesDir) {
            fileset(dir: sourcesDir, erroronmissingdir: false) {
                exclude(name: "**/ /* *.java")
            }
        }
    }
}

}

Any idea? Thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source