我使用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>现在,为什么IntelliJIDEA要指出一个错误,以及如何修复这个错误?

发布于 2015-08-23 18:16:12
你在某种程度上篡改了评论。
删除以|开头的三行。
错误是自描述性的:不能在settings XML元素中嵌套字符。
https://stackoverflow.com/questions/32168580
复制相似问题