admin管理员组文章数量:1130349
第一次使用mvn archetype:generate命令在IDEA中创建项目,一上来就报错了,报错信息如下:
[ERROR] Error executing Maven.
[ERROR] 1 problem was encountered while building the effective settings
[FATAL] Non-parseable settings E:\SoftWare\apache-maven-3.6.0\bin\..\conf\settings.xml: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...<repository>\n <maven.compiler.source>... @192:34)
@ E:\SoftWare\apache-maven-3.6.0\bin\..\conf\settings.xml, line 192, column 34
问题出在settings.xml,里面尤其是下面这部分代码,标签什么的没有对齐导致的。下面我给出的是对齐好了的代码,大家可以根据这个来修改自己的。
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
我的解决方法是,找到maven目录下的settings文件,然后用notepad++打开,先按照上面的代码格式进行对齐,然后利用空格转TAB全部转换,保存,重新在IDEA中输入命令,创建项目,最终成功~
第一次使用mvn archetype:generate命令在IDEA中创建项目,一上来就报错了,报错信息如下:
[ERROR] Error executing Maven.
[ERROR] 1 problem was encountered while building the effective settings
[FATAL] Non-parseable settings E:\SoftWare\apache-maven-3.6.0\bin\..\conf\settings.xml: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...<repository>\n <maven.compiler.source>... @192:34)
@ E:\SoftWare\apache-maven-3.6.0\bin\..\conf\settings.xml, line 192, column 34
问题出在settings.xml,里面尤其是下面这部分代码,标签什么的没有对齐导致的。下面我给出的是对齐好了的代码,大家可以根据这个来修改自己的。
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
我的解决方法是,找到maven目录下的settings文件,然后用notepad++打开,先按照上面的代码格式进行对齐,然后利用空格转TAB全部转换,保存,重新在IDEA中输入命令,创建项目,最终成功~
版权声明:本文标题:如何解决IDEA使用maven骨架创建项目时报错Non-parseable settings expected START_TAG or END_TAG 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1754582115a2704102.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论