如何在Eclipse上解决该Maven警告:“没有为此pom.xml定义任何模式"; [英] How to fix this maven warning on Eclipse: "There is no schema defined for this pom.xml"
本文介绍了如何在Eclipse上解决该Maven警告:“没有为此pom.xml定义任何模式";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我下面有一个非常简单的pom.xml:
So I have the very simple pom.xml below:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>kafka-utils</artifactId>
<version>1.1.1</version>
<dependencies>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>0.10.0.0</version>
</dependency>
</dependencies>
</project>
但是eclipse在<project>
行上给了我以下警告:
But eclipse gives me the following warning, on the <project>
line:
There is no schema defined for this pom.xml!
请参见下图:
推荐答案
就像错误提示您缺少架构声明一样
Like the error says you are missing the schema declaration
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
</project>
这篇关于如何在Eclipse上解决该Maven警告:“没有为此pom.xml定义任何模式";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文