java - jaxb xjc compilation error Super Interface not found In jaxb generated class path -


i using rackerlabs/gradle-jaxb-plugin generate classes schema. using super interface com.test.xsd.element. using xjb configuring interface. interface in current project src/main/java location. jaxb classes generating , implementing interface. compilation fails with:

com.test.xsd" package not exist.import com.test.xsd.element.element; how can add interface class path. 

code:

subprojects { project ->     apply plugin: 'org.openrepose.gradle.plugins.jaxb'     dependencies {         jaxb 'com.sun.xml.bind:jaxb-xjc:2.2.7'         jaxb 'com.sun.xml.bind:jaxb-impl:2.2.7'         jaxb 'javax.xml.bind:jaxb-api:2.2.7'     }      def generateddir = "${project.builddir}/generated-sources/xjc"      jaxb {         xjc {             args['-npa']             extension=true             destinationdir = "${generateddir}"             generateepisodefiles=false         }     }      sourcesets {         main {             java {                 srcdirs += "${generateddir}"             }         }     } } 

finlly done ant task gradle. flexible, think. can generate classes multiple xsds , multiple binding files different location.

org.openrepose.gradle.plugins.jaxb bit difficult manage 

Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -