[英]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项目。
<?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.