How to fix this maven warning on Eclipse: "There is no schema for this pom.xml"

So I have a 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>

      

But eclipse gives me the following warning on the line <project>

:

There is no schema defined for this pom.xml!

      

See the image below:

enter image description here

+2


source to share


1 answer


Like the error, you miss 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>

      

+5


source







All Articles