Error while generating scala sources

14 views
Skip to first unread message

touseef zaki

unread,
Mar 14, 2019, 11:20:40 AM3/14/19
to scalaxb
Hi,

I tried to follow the steps given at (http://scalaxb.org/mvn-scalaxb) to generate scala sources but it failed with following error message.

Description Resource Path Location Type
Error: Referenced type {abs}CorporationType was not found. (org.scalaxb:scalaxb-maven-plugin:1.5.0:generate:scalaxb:generate-sources)

org.apache.maven.plugin.MojoFailureException: Error: Referenced type {abs}CorporationType was not found.
at org.scalaxb.maven.ScalaxbMojo.invokeCompiler(ScalaxbMojo.java:161)
at org.scalaxb.maven.ScalaxbMojo.generateBindings(ScalaxbMojo.java:145)
at org.scalaxb.maven.ScalaxbMojo.execute(ScalaxbMojo.java:77)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331)
at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1362)
at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:177)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1360)
at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:52)
at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:137)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:177)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:177)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86)
at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:142)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:232)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: scalaxb.compiler.ReferenceNotFound: Error: Referenced type {abs}CorporationType was not found.
at scalaxb.compiler.xsd.ContextProcessor$$anonfun$getTypeGlobally$4.apply(ContextProcessor.scala:237)
at scalaxb.compiler.xsd.ContextProcessor$$anonfun$getTypeGlobally$4.apply(ContextProcessor.scala:237)
at scala.Option.getOrElse(Option.scala:121)
at scalaxb.compiler.xsd.ContextProcessor$class.getTypeGlobally(ContextProcessor.scala:236)
at scalaxb.compiler.xsd.Driver$$anon$1.getTypeGlobally(Driver.scala:43)
at scalaxb.compiler.xsd.ContextProcessor$class.resolveTypeSymbol$1(ContextProcessor.scala:251)
at scalaxb.compiler.xsd.ContextProcessor$$anonfun$resolveType$1.apply(ContextProcessor.scala:257)
at scalaxb.compiler.xsd.ContextProcessor$$anonfun$resolveType$1.apply(ContextProcessor.scala:257)
at scala.collection.immutable.List.foreach(List.scala:381)
at scalaxb.compiler.xsd.ContextProcessor$class.resolveType(ContextProcessor.scala:257)
at scalaxb.compiler.xsd.Driver$$anon$1.resolveType(Driver.scala:43)
at scalaxb.compiler.xsd.ContextProcessor$$anonfun$processContext$3.apply(ContextProcessor.scala:80)
at scalaxb.compiler.xsd.ContextProcessor$$anonfun$processContext$3.apply(ContextProcessor.scala:77)
at scala.collection.immutable.Stream.foreach(Stream.scala:594)
at scalaxb.compiler.xsd.ContextProcessor$class.processContext(ContextProcessor.scala:77)
at scalaxb.compiler.xsd.Driver$$anon$1.processContext(Driver.scala:43)
at scalaxb.compiler.xsd.Driver.processContext(Driver.scala:45)
at scalaxb.compiler.xsd.Driver.processContext(Driver.scala:31)
at scalaxb.compiler.Module$class.processCompileSource(Module.scala:348)
at scalaxb.compiler.xsd.Driver.processCompileSource(Driver.scala:31)
at scalaxb.compiler.Module$class.processReaders(Module.scala:206)
at scalaxb.compiler.xsd.Driver.processReaders(Driver.scala:31)
at scalaxb.compiler.Module$class.infoFiles(Module.scala:168)
at scalaxb.compiler.xsd.Driver.infoFiles(Driver.scala:31)
at scalaxb.compiler.Module$class.processFiles(Module.scala:147)
at scalaxb.compiler.xsd.Driver.processFiles(Driver.scala:31)
at org.scalaxb.maven.ScalaxbMojo.generateSources(ScalaxbMojo.java:189)
at org.scalaxb.maven.ScalaxbMojo.invokeCompiler(ScalaxbMojo.java:155)
... 34 more
pom.xml /spark-cobol line 108 Maven Build Problem


Attached is my file structure and also my POM configuration, Need help to proceed

In my use case i have multiple xsds which are dependent on each other and with this i need to create xml.


pom.txt
pom.txt
Reply all
Reply to author
Forward
0 new messages