Akash Sk
Akash Sk

Reputation: 1

I am getting these two errors while setting up the maven pom.xml file. Does anyone know the reason?

I am getting these two errors while setting up the maven pom.xml file. Does anyone know the reason? Description Resource Path Location Type CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.7 or one of its dependencies could not be resolved: org.apache.maven.plugins:maven-compiler-plugin:jar:3.8.7 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced pom.xml /selenium-for-beginners line 13 Maven Project Build Lifecycle Mapping Problem Description Resource Path Location Type org.apache.maven.plugins:maven-compiler-plugin:jar:3.8.7 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced pom.xml /selenium-for-beginners line 1 Maven Configuration Problem

enter image description here

Upvotes: 0

Views: 435

Answers (1)

Jens
Jens

Reputation: 69440

There is no version 3.8.7 of the naven-compiler-plugin in the official maven repository:

switch to 3.10.1

<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
<dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.10.1</version>
</dependency>

BTW: You can simply use

<properties>
  <maven.compiler.source>17</maven.compiler.source>
  <maven.compiler.target>17</maven.compiler.target>        
</properties>

to set the java version for the compiler

Upvotes: 1

Related Questions