简体   繁体   English

元素“设置”不能包含字符[children],因为类型的内容content-type仅是元素

[英]Element 'settings' cannot have character [children] because the type's content content-type is element-only

I am using IntelliJIDEA 14.1.14 and created a Maven project using maven-archetype-quickstart . 我正在使用IntelliJIDEA 14.1.14并使用maven-archetype-quickstart创建了一个Maven项目。

User Settings File: 用户设置文件:

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <!-- localRepository-->
    | The path to the local repository maven will use to store artifacts.
    |
    | Default: ~/.m2/repository
    <localRepository>/home/sandeep/Desktop/MyDocs/repos/maven-repos</localRepository>
    <pluginGroups>
    </pluginGroups>
</settings>

Now, why does IntelliJIDEA pointing an error and how do I fix this? 现在,为什么IntelliJIDEA指出错误,我该如何解决?

在此处输入图片说明

You have tampered somehow with the comment. 您以某种方式篡改了评论。

Remove the three lines starting with | 删除以|开头的三行 .

The error is self descriptive: you can't have have characters nested within the settings XML element. 错误是自我描述的: settings XML元素中不能嵌套字符。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 元素&#39;price&#39;不能包含字符[children],因为类型的内容类型仅为元素 - Element 'price' cannot have character [children], because the type's content type is element-only 元素不能有字符 [children],因为该类型的内容类型是 element-only - Element cannot have character [children], because the type's content type is element-only cvc-complex-type.2.3:元素“项目”不能包含字符[children],因为类型的内容类型仅是元素 - cvc-complex-type.2.3: Element 'project' cannot have character [children], because the type's content type is element-only cvc-complex-type.2.3:元素“group”不能有字符 [children],因为该类型的内容类型是 element-only - cvc-complex-type.2.3: Element 'group' cannot have character [children], because the type's content type is element-only 针对XSD的XML验证:元素不能包含字符,因为类型的内容类型仅是元素 - XML validation against XSD: Element cannot have character, because the type's content type is element-only 元素必须没有字符或元素信息项[children],因为类型的内容类型为空 - Element must have no character or element information item [children], because the type's content type is empty cvc-complex-type.2.3:元素 'wsdl:definitions' 不能有字符,因为该类型的内容类型是仅元素。 当 xml 被验证时 - cvc-complex-type.2.3: Element 'wsdl:definitions' cannot have character, because the type's content type is element-only. when the xml is validated 验证XSD文件时出现问题:派生类型的内容类型及其基类的内容类型必须是混合的,或者两者都是仅元素的 - Problem validating an XSD file: The content type of a derived type and that of its base must both be mixed or both be element-only 定义元素的内容类型以及可枚举的属性 - Define the content-type of an element together with an enumerable attribute cvc-complex-type.2.3:元素“项目”不能具有字符子代 - cvc-complex-type.2.3 : Element 'Project' cannot have character children
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM