【问题标题】:Element type "settings" must be followed by either attribute specifications, ">" or "/>"元素类型“设置”必须后跟属性规范,“>”或“/>”
【发布时间】:2015-10-27 01:36:20
【问题描述】:
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 
                              http://maven.apache.org/xsd/settings-1.1.0.xsd"  
          xmlns="http://maven.apache.org/SETTINGS/1.1.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ">

【问题讨论】:

标签: java xml maven xsd


【解决方案1】:

所有 XML 元素都必须有一个结束标记

所以错误很明显。你要么需要写

...stance "></settings>

...stance " />

在 XML 的末尾。

也可以看看:http://www.w3schools.com/xml/xml_syntax.asp

【讨论】:

    猜你喜欢
    • 2017-03-12
    • 2012-01-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多