- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我正在尝试使用 maven-jaxb2-plugin
编译位于 http://www.aptatcip.com/APTA-TCIP-S-01%204.0_files/Schema%20Set.zip 的 XSD
使用此 pom.xml
和下面的命令行(从父文件夹运行),编译失败并显示一条相当神秘的错误消息(也在下面给出):
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<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>
命令行(在父项目文件夹中)
MAVEN_OPTS="-server -Djava.awt.headless=true -Xmx2G -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC" mvn -X -U clean install -pl onebusaway-nyc-tcip-api
错误信息
[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]
maven
输出的最后一部分(因为-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://www.atis-partial-03-00-74,atis_Partial_03_00_74.xsd)
Failed to create InputSource: atis_Partial_03_00_74.xsd
resolveSystem(ITIS_Final_3_0_0_for_atis.xsd)
resolvePublic(http://www.itis-final-3-0-0-for-atis,ITIS_Final_3_0_0_for_atis.xsd)
Failed to create InputSource: ITIS_Final_3_0_0_for_atis.xsd
resolveSystem(ITIS_Local_for_atis.xsd)
resolvePublic(http://www.itis-3-0-0-local-for-atis,ITIS_Local_for_atis.xsd)
Failed to create InputSource: ITIS_Local_for_atis.xsd
resolveSystem(LRMS_Final_09_07_for_atis.xsd)
resolvePublic(http://www.lrms-final-09-07-for-atis,LRMS_Final_09_07_for_atis.xsd)
Failed to create InputSource: LRMS_Final_09_07_for_atis.xsd
resolveSystem(LRMS_Local_for_atis.xsd)
resolvePublic(http://www.lrms-local-atis,LRMS_Local_for_atis.xsd)
Failed to create InputSource: LRMS_Local_for_atis.xsd
resolveSystem(ATIS_03_00_74_Local.xsd)
resolvePublic(http://www.atis-03-00-74-local,ATIS_03_00_74_Local.xsd)
Failed to create InputSource: ATIS_03_00_74_Local.xsd
resolveSystem(tmdd_Partial_0_0_0.xsd)
resolvePublic(http://www.tmdd-partial-00-00-00,tmdd_Partial_0_0_0.xsd)
Failed to create InputSource: tmdd_Partial_0_0_0.xsd
resolveSystem(im_Partial_03_00_38.xsd)
resolvePublic(http://www.im-partial-03-00-38,im_Partial_03_00_38.xsd)
Failed to create InputSource: im_Partial_03_00_38.xsd
resolveSystem(ITIS_Local_for_im.xsd)
resolvePublic(http://www.itis-local-for-im,ITIS_Local_for_im.xsd)
Failed to create InputSource: ITIS_Local_for_im.xsd
resolveSystem(LRMS_Final_09_07_for_im.xsd)
resolvePublic(http://www.lrms-final-09-07-for-im,LRMS_Final_09_07_for_im.xsd)
Failed to create InputSource: LRMS_Final_09_07_for_im.xsd
resolveSystem(LRMS_Local_for_im.xsd)
resolvePublic(http://www.lrms-local-for-im,LRMS_Local_for_im.xsd)
Failed to create InputSource: LRMS_Local_for_im.xsd
resolveSystem(IM_03_00_38_Local.xsd)
resolvePublic(http://www.im-03-00-38-local,IM_03_00_38_Local.xsd)
Failed to create InputSource: IM_03_00_38_Local.xsd
resolveSystem(itis_Final_3_0_0.xsd)
resolvePublic(http://www.itis-final-3-0-0,itis_Final_3_0_0.xsd)
Failed to create InputSource: itis_Final_3_0_0.xsd
resolveSystem(ITIS_3_0_0_Local.xsd)
resolvePublic(http://www.itis-3-0-0-local,ITIS_3_0_0_Local.xsd)
Failed to create InputSource: ITIS_3_0_0_Local.xsd
resolveSystem(lrms_Final_09_07.xsd)
resolvePublic(http://www.lrms-final-09-07,lrms_Final_09_07.xsd)
Failed to create InputSource: lrms_Final_09_07.xsd
resolveSystem(LRMS_09_07_Local.xsd)
resolvePublic(http://www.dummy-local-address,LRMS_09_07_Local.xsd)
Failed to create InputSource: LRMS_09_07_Local.xsd
resolveSystem(tcip_4_0_0_local.xsd)
resolvePublic(http://www.tcip-4-0-0-local,tcip_4_0_0_local.xsd)
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://www.atis-partial-03-00-74,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/atis_Partial_03_00_74.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/atis_Partial_03_00_74.xsd)
resolvePublic(http://www.atis-partial-03-00-74,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/atis_Partial_03_00_74.xsd)
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://www.itis-final-3-0-0-for-atis,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Final_3_0_0_for_atis.xsd)
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://www.itis-final-3-0-0-for-atis,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Final_3_0_0_for_atis.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Local_for_atis.xsd)
resolvePublic(http://www.itis-3-0-0-local-for-atis,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Local_for_atis.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Local_for_atis.xsd)
resolvePublic(http://www.itis-3-0-0-local-for-atis,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Local_for_atis.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Final_09_07_for_atis.xsd)
resolvePublic(http://www.lrms-final-09-07-for-atis,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Final_09_07_for_atis.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Final_09_07_for_atis.xsd)
resolvePublic(http://www.lrms-final-09-07-for-atis,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Final_09_07_for_atis.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Local_for_atis.xsd)
resolvePublic(http://www.lrms-local-atis,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Local_for_atis.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Local_for_atis.xsd)
resolvePublic(http://www.lrms-local-atis,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Local_for_atis.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ATIS_03_00_74_Local.xsd)
resolvePublic(http://www.atis-03-00-74-local,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ATIS_03_00_74_Local.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ATIS_03_00_74_Local.xsd)
resolvePublic(http://www.atis-03-00-74-local,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ATIS_03_00_74_Local.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/tmdd_Partial_0_0_0.xsd)
resolvePublic(http://www.tmdd-partial-00-00-00,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/tmdd_Partial_0_0_0.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/tmdd_Partial_0_0_0.xsd)
resolvePublic(http://www.tmdd-partial-00-00-00,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/tmdd_Partial_0_0_0.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/im_Partial_03_00_38.xsd)
resolvePublic(http://www.im-partial-03-00-38,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/im_Partial_03_00_38.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/im_Partial_03_00_38.xsd)
resolvePublic(http://www.im-partial-03-00-38,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/im_Partial_03_00_38.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Local_for_im.xsd)
resolvePublic(http://www.itis-local-for-im,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Local_for_im.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Local_for_im.xsd)
resolvePublic(http://www.itis-local-for-im,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_Local_for_im.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Final_09_07_for_im.xsd)
resolvePublic(http://www.lrms-final-09-07-for-im,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Final_09_07_for_im.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Final_09_07_for_im.xsd)
resolvePublic(http://www.lrms-final-09-07-for-im,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Final_09_07_for_im.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Local_for_im.xsd)
resolvePublic(http://www.lrms-local-for-im,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Local_for_im.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Local_for_im.xsd)
resolvePublic(http://www.lrms-local-for-im,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_Local_for_im.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/IM_03_00_38_Local.xsd)
resolvePublic(http://www.im-03-00-38-local,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/IM_03_00_38_Local.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/IM_03_00_38_Local.xsd)
resolvePublic(http://www.im-03-00-38-local,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/IM_03_00_38_Local.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/itis_Final_3_0_0.xsd)
resolvePublic(http://www.itis-final-3-0-0,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/itis_Final_3_0_0.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/itis_Final_3_0_0.xsd)
resolvePublic(http://www.itis-final-3-0-0,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/itis_Final_3_0_0.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_3_0_0_Local.xsd)
resolvePublic(http://www.itis-3-0-0-local,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_3_0_0_Local.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_3_0_0_Local.xsd)
resolvePublic(http://www.itis-3-0-0-local,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/ITIS_3_0_0_Local.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/lrms_Final_09_07.xsd)
resolvePublic(http://www.lrms-final-09-07,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/lrms_Final_09_07.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/lrms_Final_09_07.xsd)
resolvePublic(http://www.lrms-final-09-07,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/lrms_Final_09_07.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_09_07_Local.xsd)
resolvePublic(http://www.dummy-local-address,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_09_07_Local.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_09_07_Local.xsd)
resolvePublic(http://www.dummy-local-address,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/LRMS_09_07_Local.xsd)
resolveSystem(file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/tcip_4_0_0_local.xsd)
resolvePublic(http://www.tcip-4-0-0-local,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/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_local.xsd)
resolvePublic(http://www.tcip-4-0-0-local,file:/Users/dhaskin/clients/cs/onebusaway-nyc/onebusaway-nyc-tcip-api/src/main/resources/tcip_4_0_0_local.xsd)
[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://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
mvn -x 的开始
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 08:22:22-0700)
Maven home: /usr/local/Cellar/maven31/3.1.1/libexec
Java version: 1.6.0_65, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.10", arch: "x86_64", family: "mac"
最佳答案
你能发布你的java -version
吗?或 mvn -X
的开头日志?
问题很可能出在这里:
[INFO] Detected JAXB API version [2.1].
...
[INFO] specVersion:2.2
jaxb-api-2.2.jar
进入您的 $JRE_HOME/lib/endorsed 目录。java.endorsed.dirs
中。系统属性。我看到你正在使用 maven-jaxb2-plugin现在。如果您想继续使用 JAXB 2.1 和您的 JDK(可能有些过时),您可以:
<specVersion>2.1</specVersion>
maven-jaxb21-plugin
,它是与 JAXB 2.1 链接的插件的变体。关于java - xjc,maven-jaxb2-插件 : cryptic java. lang.NoSuchMethodException : javax. xml.bind.annotation.XmlElementRef.required(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26936271/
对于我的程序,目标是使用一堆接口(interface)并创建一个程序来进行测试并允许用户进行测试。我遇到的具体问题是 IQuestionFactory 接口(interface),它有助于在 Test
我刚刚读到有关反射的内容并决定尝试一下,但我似乎遇到了一个错误,我找不到原因。 我在一个类中得到了以下代码: String hashType = "md5"; Method method = Dige
我正在尝试使用反射来加载一个类的实例。当我尝试这样做时,我没有得到这样的方法异常。我已经检查并检查并重新检查。该构造函数显然确实存在。有人有什么想法吗?我之前在另一个代码基本相同的项目中成功使用过它,
这是连接两个关系的作业, import org.apache.hadoop.mapred.*; import org.apache.hadoop.conf.*; import org.apache.h
我正在尝试反序列化包含方法的 XML 文件。 片段看起来像: XMLDecoder decoder = new XMLDecoder(os); deSerializedObject = de
在我的 POM 中,我添加了依赖项 String 4.2.9.RELEASE、Spring boot 1.5.1.RELEASE 和 FasterXML/jackson 2.8.6,并出现以下错误:
在我的代码中有一个方法应该调用对象的方法doSomething。首先,不知道对象的类是否具有公共(public)方法。到目前为止,我使用了以下代码: try { Method method = c
我有以下具有静态方法的类,该方法采用 Class 类型的参数并生成一个 FunctionDescriptor。 public class NoInputFunctionDescriptorFactor
我正在使用 glassfish 3.1.2.2 服务器和 idea Ultimate Edition 11(在 Ubuntu 12.04 上)。当我部署我的耳朵项目时,有一个异常(exception)
所以我有一个定义了 2 个公共(public)方法的类。当我调用 getDeclaredMethods 时,然后循环结果,打印名称,两者都正确显示。所以不仅该方法存在,而且反射调用也找到了它。 但是当
每当使用 URLClassLoader 动态加载类时,当尝试执行使用自定义数据类型作为参数的方法时,我都会收到 NoSuchMethodException 异常。它查找具有标准类型(如 String
我正在尝试根据类和参数创建类的实例。用于创建此类的方法如下所示: @SuppressWarnings("unchecked") public Plugin instantiatePlugin(
我正在构建一个 JavaFx 应用程序,我想创建一个接收 GridPane 和 Node[] 以及添加到 Pane 中的项目数量的方法。但是,当我调用该方法时,我收到 NoSuchMethodExce
我有一个类如下: public class StreamEventSuccess { private final T event; public StreamEventSuccess(
我们正在开发一个动态类加载器项目,并尝试通过 URLClassLoader 调用动态加载类中的方法。它在 Eclipse 中运行时工作得很好,因此调用和动态加载的类被捆绑到两个不同的 jar 中,然后
我正在使用 Taylor 近似在 Java 中编写正弦函数的递归定义,但在运行代码时得到了 noSuchMethodException。这是我到目前为止所拥有的: public static void
我有一个 Android 应用程序。我正在使用反射来调用 CookieManager 的方法。 我在做什么: if (Build.VERSION.SDK_INT >= 21) { Method
我正在尝试编写一个表单,有一次有 2 个单选按钮询问此人的性别。我想要求至少按下一个按钮,否则他们就会 toast 。它们出现在 activity_main 中:
给出的类奖: public class Award { /* * */ // fields of the class Award() {
我在执行时得到一个NoSuchMethodException: operacionDTO.getClass().getMethod("setPrioridad").invoke(operacionDT
我是一名优秀的程序员,十分优秀!