Ant WsImport throwing errors during compiling generated java files in gradle -
i generating web service clients using gradle ant wsimport task , packaging clients -clientjar option -xnocompile set false.
during compilation of generated java code xcompile option, throwing exception ([ant:wsimport] compilation failed, errors should have been reported) due dependencies (package abc.customdateadapter not exist) on generated java files not resolved.
i supplying jaxb global binding file wsimport task in have customized xsd:date bindings customdateadapter. package import of customdateadapter not resolved on generated java files during ant wsimport.
the unresolved customdateadapter package in projecta compile time , buildscript classpath dependency current project. still ant wsimport not picking classpath dependency during compiling generated java files.
can please suggest how add external project classpath dependency ant wsimport task.
i have figured out issue on own.
created custom dependency configuration ant wsimport , declared required jars, ant compilation works fine expected.
Comments
Post a Comment