我是靠谱客的博主 柔弱含羞草,这篇文章主要介绍Invalid content was found starting with element ‘{“http://maven.apache.org/POM/4.0.0“:dependency}‘.,现在分享给大家,希望可以做个参考。

在maven项目中运行时出现如下错误:

点击上面的项目名,点击链接进入到报错的文件中

一般这种报错就是你的

复制代码
1
Invalid content was found starting with element '{"http://maven.apache.org/POM/4.0.0":dependency}'. One of '{"http://maven.apache.org/POM/4.0.0":groupId, "http://maven.apache.org/POM/4.0.0":name, "http://maven.apache.org/POM/4.0.0":version, "http://maven.apache.org/POM/4.0.0":description, "http://maven.apache.org/POM/4.0.0":url, "http://maven.apache.org/POM/4.0.0":prerequisites, "http://maven.apache.org/POM/4.0.0":issueManagement, "http://maven.apache.org/POM/4.0.0":ciManagement, "http://maven.apache.org/POM/4.0.0":inceptionYear, "http://maven.apache.org/POM/4.0.0":mailingLists, "http://maven.apache.org/POM/4.0.0":developers, "http://maven.apache.org/POM/4.0.0":contributors, "http://maven.apache.org/POM/4.0.0":licenses, "http://maven.apache.org/POM/4.0.0":scm, "http://maven.apache.org/POM/4.0.0":organization, "http://maven.apache.org/POM/4.0.0":build, "http://maven.apache.org/POM/4.0.0":profiles, "http://maven.apache.org/POM/4.0.0":modules, "http://maven.apache.org/POM/4.0.0":repositories, "http://maven.apache.org/POM/4.0.0":pluginRepositories, "http://maven.apache.org/POM/4.0.0":reports, "http://maven.apache.org/POM/4.0.0":reporting, "http://maven.apache.org/POM/4.0.0":dependencyManagement, "http://maven.apache.org/POM/4.0.0":distributionManagement, "http://maven.apache.org/POM/4.0.0":properties}' is expected.

1.dependencies 标签 放错了位置还没结束就加上了</dependencies>

2.plugins节点配置错误了,格式如下

复制代码
1
2
3
4
5
6
<build> <plugins> <plugins> </plugin> </plugins> </build>

 

最后

以上就是柔弱含羞草最近收集整理的关于Invalid content was found starting with element ‘{“http://maven.apache.org/POM/4.0.0“:dependency}‘.的全部内容,更多相关Invalid内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(65)

评论列表共有 0 条评论

立即
投稿
返回
顶部