So recently I added a pom.xml file to my java project in IntelliJ Idea and I then made it into a maven project. Though when I opened the pom.xml back again with IntelliJ I saw 2 errors at “project” from the first project tag (<project). This Error weirdly only appeared after I changed a letter that wasn’t important and then never went away unless I went on a different window. Can somebody tell me why this is happening and how I can fix it?
Here is my pom.xml by the way:
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.eplusplus</groupId>
<artifactId>e++</artifactId>
<version>1.0.0</version>
<name>E++</name>
<description>A brief description of my project</description>
<url>http://www.example.com/my-project</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
I expected there to be no error since even AI doesn’t what the f**k is wrong with my code.
1