无法识别accessExternalSchema

时间:2019-05-02 12:30:50

标签: java jaxb xjc jaxp

我正在尝试使用Maven从XSD / WSDL生成Java类。我已经在我的POM文件中使用XJC插件声明了所有XSD。当我尝试进行全新安装时,我看到这两个错误消息。

[DEBUG] [SchemaGen]: May 02, 2019 5:49:09 PM com.sun.xml.bind.v2.util.XmlFactory allowExternalAccess
CONFIG: Property "http://javax.xml.XMLConstants/property/accessExternalSchema" is not supported by used JAXP implementation.
org.xml.sax.SAXNotRecognizedException: Property 'http://javax.xml.XMLConstants/property/accessExternalSchema' is not recognized.
        at org.apache.xerces.jaxp.validation.XMLSchemaFactory.setProperty(Unknown Source)
        at com.sun.xml.bind.v2.util.XmlFactory.allowExternalAccess(XmlFactory.java:236)
        at com.sun.tools.xjc.reader.xmlschema.parser.SchemaConstraintChecker.check(SchemaConstraintChecker.java:87)


[DEBUG] [SchemaGen]: May 02, 2019 5:49:09 PM com.sun.xml.bind.v2.util.XmlFactory allowExternalDTDAccess
CONFIG: Property "http://javax.xml.XMLConstants/property/accessExternalDTD" is not supported by used JAXP implementation.
org.xml.sax.SAXNotRecognizedException: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
        at org.apache.xerces.jaxp.validation.XMLSchemaFactory.setProperty(Unknown Source)
        at com.sun.xml.bind.v2.util.XmlFactory.allowExternalDTDAccess(XmlFactory.java:267)
        at com.sun.tools.xjc.reader.xmlschema.parser.SchemaConstraintChecker.check(SchemaConstraintChecker.java:110)

我在JRE / lib文件夹中的jaxp.propterties文件中进行了所有必要的更改。这是属性文件的内容。我已将其存储在C:\ Program Files \ Java \ jdk1.8.0_181 \ jre \ lib中。那就是maven在使用的东西。

javax.xml.accessExternalSchema=all
javax.xml.accessExternalDTD=all

这实际上是错误还是可以忽略?

0 个答案:

没有答案