xjc, maven-jaxb2-plugin: cryptic java.lang.NoSuchMethodException: javax.xml.bind.annotation.XmlElementRef.required()



I'm attempting to use maven-jaxb2-plugin to compile the XSDs at http://ift.tt/1sNo05s


Using this pom.xml, and the command line below (run from the parent folder), the compilation fails with a fairly cryptic error message (also given below):


pom.xml



<project xmlns="http://ift.tt/IH78KX" xmlns:xsi="http://ift.tt/ra1lAU" xsi:schemaLocation="http://ift.tt/IH78KX http://ift.tt/HBk9RF">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.14.0-SNAPSHOT</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-tcip-api</artifactId>
<packaging>jar</packaging>
<name>onebusaway-nyc-tcip-api</name>
<build>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.11.0</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaDirectory>src/main/resources</schemaDirectory>
<schemaIncludes>
<include>TCIP_4_0_0_Final.xsd</include>
</schemaIncludes>
</configuration>
</plugin>
</plugins>
</build>
</project>


command line (in the parent project folder)



MAVEN_OPTS="-server -Djava.awt.headless=true -Xmx2G -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC" mvn -X -U clean install -pl onebusaway-nyc-tcip-api


error message



[ERROR] Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.11.0:generate (default) on project onebusaway-nyc-tcip-api: Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.11.0:generate failed. UndeclaredThrowableException: javax.xml.bind.annotation.XmlElementRef.required() -> [Help 1]


Last part of maven output (long because of -X)



[INFO] Started execution.
[INFO] JAXB API is loaded from the [jar:file:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar!].
[INFO] Detected JAXB API version [2.1].
[INFO] pluginArtifacts:[org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:maven-plugin:0.11.0:, org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-core:jar:0.11.0:compile, com.sun.org.apache.xml.internal:resolver:jar:20050927:compile, org.sonatype.plexus:plexus-build-api:jar:0.0.7:compile, junit:junit:jar:4.8.1:compile, org.codehaus.plexus:plexus-utils:jar:1.5.15:compile, org.jvnet.jaxb2.maven2:maven-jaxb22-plugin:jar:0.11.0:compile, com.sun.xml.bind:jaxb-core:jar:2.2.11:compile, com.sun.xml.bind:jaxb-impl:jar:2.2.11:compile, com.sun.xml.bind:jaxb-xjc:jar:2.2.11:compile, org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2:compile]
[INFO] specVersion:2.2
[INFO] encoding:UTF-8
[INFO] locale:null
[INFO] schemaLanguage:null
[INFO] schemaDirectory:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources
[INFO] schemaIncludes:[TCIP_4_0_0_Final.xsd]
[INFO] schemaExcludes:null
[INFO] schemas:[]
[INFO] bindingDirectory:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources
[INFO] bindingIncludes:[*.xjb]
[INFO] bindingExcludes:null
[INFO] bindings:[]
[INFO] disableDefaultExcludes:false
[INFO] catalog:null
[INFO] catalogResolver:null
[INFO] generatePackage:null
[INFO] generateDirectory:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/target/generated-sources/xjc
[INFO] readOnly:false
[INFO] extension:true
[INFO] strict:true
[INFO] writeCode:true
[INFO] verbose:true
[INFO] debug:false
[INFO] args:[]
[INFO] forceRegenerate:false
[INFO] removeOldOutput:false
[INFO] produces:[**/*.*, **/*.java, **/bgm.ser, **/jaxb.properties]
[INFO] otherDepends:null
[INFO] episodeFile:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/target/generated-sources/xjc/META-INF/sun-jaxb.episode
[INFO] episode:true
[INFO] classpathElements:[/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/target/classes]
[INFO] plugins:null
[INFO] episodes:null
[INFO] useDependenciesAsEpisodes:false
[INFO] scanDependenciesForBindings:false
[INFO] xjcPlugins:null
[INFO] episodes:null
[INFO] schemaFiles (calculated):[/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/TCIP_4_0_0_Final.xsd]
[INFO] bindingFiles (calculated):[]
[INFO] xjcPluginArtifacts (resolved):[]
[INFO] xjcPluginFiles (resolved):[]
[INFO] xjcPluginURLs (resolved):[]
[INFO] episodeArtifacts (resolved):[]
[INFO] episodeFiles (resolved):[]
Parse catalog: ./xcatalog
Loading catalog: ./xcatalog
Default BASE: file:/Users/dhaskin/clients/cs/onebusaway-nyc/xcatalog
Catalog does not exist: file:/Users/dhaskin/clients/cs/onebusaway-nyc/xcatalog
[INFO] optionsConfiguration:OptionsConfiguration [specVersion=2.2
generateDirectory=/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/target/generated-sources/xjc
generatePackage=null
schemaLanguage=null
schemas=[file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/TCIP_4_0_0_Final.xsd]
bindings=[]
plugins=[]
catalogs=[]
catalogResolver=org.jvnet.jaxb2.maven2.resolver.tools.MavenCatalogResolver@1d87b360
readOnly=false
packageLevelAnnotations=true
noFileHeader=false
enableIntrospection=false
disableXmlSecurity=true
accessExternalSchema=all
accessExternalDTD=all
contentForWildcard=false
extension=true
strict=true
verbose=true
debugMode=false
arguments=true]
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/TCIP_4_0_0_Final.xsd)
Using java.util.ServiceLoader
[INFO] File [/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/TCIP_4_0_0_Final.xsd] might have been changed since the last build.
[INFO] File [/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/pom.xml] might have been changed since the last build.
[INFO] Checking up-to-date depends [[/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/TCIP_4_0_0_Final.xsd, /Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/pom.xml]].
[INFO] Checking up-to-date produces [[]].
[INFO] Depends timestamp [1,415,987,486,000], produces timestamp [null].
[INFO] File [/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/TCIP_4_0_0_Final.xsd] might have been changed since the last build.
[INFO] File [/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/pom.xml] might have been changed since the last build.
[INFO] Checking up-to-date depends [[/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/TCIP_4_0_0_Final.xsd, /Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/pom.xml]].
[INFO] Checking up-to-date produces [[]].
[INFO] Depends timestamp [1,415,987,486,000], produces timestamp [null].
[INFO] Sources are not up-to-date, XJC will be executed.
[INFO] Parsing input schema(s)...
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/TCIP_4_0_0_Final.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/TCIP_4_0_0_Final.xsd)
resolveSystem(atis_Partial_03_00_74.xsd)
resolvePublic(http://ift.tt/1sNo2tX)
Failed to create InputSource: atis_Partial_03_00_74.xsd
resolveSystem(ITIS_Final_3_0_0_for_atis.xsd)
resolvePublic(http://ift.tt/1sNo0lP)
Failed to create InputSource: ITIS_Final_3_0_0_for_atis.xsd
resolveSystem(ITIS_Local_for_atis.xsd)
resolvePublic(http://ift.tt/1ulgGT0)
Failed to create InputSource: ITIS_Local_for_atis.xsd
resolveSystem(LRMS_Final_09_07_for_atis.xsd)
resolvePublic(http://ift.tt/1ulgGT2)
Failed to create InputSource: LRMS_Final_09_07_for_atis.xsd
resolveSystem(LRMS_Local_for_atis.xsd)
resolvePublic(http://ift.tt/1sNo0lS)
Failed to create InputSource: LRMS_Local_for_atis.xsd
resolveSystem(ATIS_03_00_74_Local.xsd)
resolvePublic(http://ift.tt/1ulgJy6)
Failed to create InputSource: ATIS_03_00_74_Local.xsd
resolveSystem(tmdd_Partial_0_0_0.xsd)
resolvePublic(http://ift.tt/1ulgGT6)
Failed to create InputSource: tmdd_Partial_0_0_0.xsd
resolveSystem(im_Partial_03_00_38.xsd)
resolvePublic(http://ift.tt/1ulgGT8)
Failed to create InputSource: im_Partial_03_00_38.xsd
resolveSystem(ITIS_Local_for_im.xsd)
resolvePublic(http://ift.tt/1sNo2Kp)
Failed to create InputSource: ITIS_Local_for_im.xsd
resolveSystem(LRMS_Final_09_07_for_im.xsd)
resolvePublic(http://ift.tt/1sNo0Cd)
Failed to create InputSource: LRMS_Final_09_07_for_im.xsd
resolveSystem(LRMS_Local_for_im.xsd)
resolvePublic(http://ift.tt/1sNo2Ku)
Failed to create InputSource: LRMS_Local_for_im.xsd
resolveSystem(IM_03_00_38_Local.xsd)
resolvePublic(http://ift.tt/1ulgH9v)
Failed to create InputSource: IM_03_00_38_Local.xsd
resolveSystem(itis_Final_3_0_0.xsd)
resolvePublic(http://ift.tt/1ulgJOw)
Failed to create InputSource: itis_Final_3_0_0.xsd
resolveSystem(ITIS_3_0_0_Local.xsd)
resolvePublic(http://ift.tt/1ulgH9A)
Failed to create InputSource: ITIS_3_0_0_Local.xsd
resolveSystem(lrms_Final_09_07.xsd)
resolvePublic(http://ift.tt/1sNo2KA)
Failed to create InputSource: lrms_Final_09_07.xsd
resolveSystem(LRMS_09_07_Local.xsd)
resolvePublic(http://ift.tt/1ulgHpS)
Failed to create InputSource: LRMS_09_07_Local.xsd
resolveSystem(tcip_4_0_0_local.xsd)
resolvePublic(http://ift.tt/1sNo0Cp)
Failed to create InputSource: tcip_4_0_0_local.xsd
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/TCIP_4_0_0_Final.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/atis_Partial_03_00_74.xsd)
resolvePublic(http://ift.tt/1ulgHpW)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/atis_Partial_03_00_74.xsd)
resolvePublic(http://ift.tt/1ulgHpW)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Final_3_0_0_for_atis.xsd)
resolvePublic(http://ift.tt/1ulgK5c)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Final_3_0_0_for_atis.xsd)
resolvePublic(http://ift.tt/1ulgK5c)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Local_for_atis.xsd)
resolvePublic(http://ift.tt/1ulgHqb)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Local_for_atis.xsd)
resolvePublic(http://ift.tt/1ulgHqb)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Final_09_07_for_atis.xsd)
resolvePublic(http://ift.tt/1sNo312)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Final_09_07_for_atis.xsd)
resolvePublic(http://ift.tt/1sNo312)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Local_for_atis.xsd)
resolvePublic(http://ift.tt/1ulgKlL)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Local_for_atis.xsd)
resolvePublic(http://ift.tt/1ulgKlL)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ATIS_03_00_74_Local.xsd)
resolvePublic(http://ift.tt/1ulgHGF)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ATIS_03_00_74_Local.xsd)
resolvePublic(http://ift.tt/1ulgHGF)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/tmdd_Partial_0_0_0.xsd)
resolvePublic(http://ift.tt/1sNo3y4)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/tmdd_Partial_0_0_0.xsd)
resolvePublic(http://ift.tt/1sNo3y4)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/im_Partial_03_00_38.xsd)
resolvePublic(http://ift.tt/1sNo3hr)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/im_Partial_03_00_38.xsd)
resolvePublic(http://ift.tt/1sNo3hr)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Local_for_im.xsd)
resolvePublic(http://ift.tt/1sNo3Op)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Local_for_im.xsd)
resolvePublic(http://ift.tt/1sNo3Op)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Final_09_07_for_im.xsd)
resolvePublic(http://ift.tt/1ulgHX3)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Final_09_07_for_im.xsd)
resolvePublic(http://ift.tt/1ulgHX3)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Local_for_im.xsd)
resolvePublic(http://ift.tt/1sNo3OA)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Local_for_im.xsd)
resolvePublic(http://ift.tt/1sNo3OA)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/IM_03_00_38_Local.xsd)
resolvePublic(http://ift.tt/1sNo6d8)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/IM_03_00_38_Local.xsd)
resolvePublic(http://ift.tt/1sNo6d8)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/itis_Final_3_0_0.xsd)
resolvePublic(http://ift.tt/1ulgKST)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/itis_Final_3_0_0.xsd)
resolvePublic(http://ift.tt/1ulgKST)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_3_0_0_Local.xsd)
resolvePublic(http://ift.tt/1ulgL9a)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_3_0_0_Local.xsd)
resolvePublic(http://ift.tt/1ulgL9a)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/lrms_Final_09_07.xsd)
resolvePublic(http://ift.tt/1sNo6ty)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/lrms_Final_09_07.xsd)
resolvePublic(http://ift.tt/1sNo6ty)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_09_07_Local.xsd)
resolvePublic(http://ift.tt/1sNo44U)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_09_07_Local.xsd)
resolvePublic(http://ift.tt/1sNo44U)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/tcip_4_0_0_local.xsd)
resolvePublic(http://ift.tt/1sNo6tD)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/tcip_4_0_0_local.xsd)
resolvePublic(http://ift.tt/1sNo6tD)
[INFO] Compiling input schema(s)...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:28.839s
[INFO] Finished at: Fri Nov 14 09:57:04 PST 2014
[INFO] Final Memory: 12M/403M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.11.0:generate (default) on project onebusaway-nyc-tcip-api: Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.11.0:generate failed. UndeclaredThrowableException: javax.xml.bind.annotation.XmlElementRef.required() -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.11.0:generate (default) on project onebusaway-nyc-tcip-api: Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.11.0:generate failed.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.11.0:generate failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy43.required(Unknown Source)
at com.sun.tools.xjc.generator.bean.field.AbstractField.annotateReference(AbstractField.java:202)
at com.sun.tools.xjc.generator.bean.field.AbstractField.annotate(AbstractField.java:161)
at com.sun.tools.xjc.generator.bean.field.AbstractListField.generate(AbstractListField.java:129)
at com.sun.tools.xjc.generator.bean.field.UntypedListField.<init>(UntypedListField.java:112)
at com.sun.tools.xjc.generator.bean.field.UntypedListFieldRenderer.generate(UntypedListFieldRenderer.java:77)
at com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer.generate(DefaultFieldRenderer.java:82)
at com.sun.tools.xjc.generator.bean.BeanGenerator.generateFieldDecl(BeanGenerator.java:777)
at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:558)
at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:261)
at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:169)
at com.sun.tools.xjc.model.Model.generateCode(Model.java:288)
at org.jvnet.mjiip.v_2_2.XJC22Mojo.generateCode(XJC22Mojo.java:66)
at org.jvnet.mjiip.v_2_2.XJC22Mojo.doExecute(XJC22Mojo.java:41)
at org.jvnet.mjiip.v_2_2.XJC22Mojo.doExecute(XJC22Mojo.java:28)
at org.jvnet.jaxb2.maven2.RawXJC2Mojo.doExecute(RawXJC2Mojo.java:326)
at org.jvnet.jaxb2.maven2.RawXJC2Mojo.execute(RawXJC2Mojo.java:168)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
... 20 more
Caused by: java.lang.NoSuchMethodException: javax.xml.bind.annotation.XmlElementRef.required()
at java.lang.Class.getDeclaredMethod(Class.java:1973)
at com.sun.codemodel.TypedAnnotationWriter.invoke(TypedAnnotationWriter.java:112)
... 38 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://ift.tt/1jVklQS

No comments:

Post a Comment