我在maven身上犯了个错误。它在vs代码中添加了一个与工具的依赖项,并关闭了签入样式。我试图重新启动vs代码,因为它可能是一个bug,但显然不是。调试错误消息:
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM c:\Users\wikim\Desktop\Java\argbot\pom.xml: Duplicated tag: 'configuration' (position: START_TAG seen ...</dependencies>\r\n <configuration>... @80:24) @ line 80, column 24
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project (c:\Users\wikim\Desktop\Java\argbot\pom.xml) has 1 error
[ERROR] Non-parseable POM c:\Users\wikim\Desktop\Java\argbot\pom.xml: Duplicated tag: 'configuration' (position: START_TAG seen ...</dependencies>\r\n <configuration>... @80:24) @ line 80, column 24 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
下面是pom.xml文件
1条答案
按热度按时间qvk1mo1f1#
如果您查看错误,它会显示第80行有问题。对于插件
maven-checkstyle-plugin
你有两个configuration
xml中的标记。我会把它改成一个: