所以我有下面非常简单的 pom.xml:
<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>
上给了我以下警告行:
There is no schema defined for this pom.xml!
见下图:
最佳答案
就像错误表明您缺少架构声明
<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 - 如何修复 Eclipse 上的此 Maven 警告 : "There is no schema defined for this pom.xml",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37489985/