Received error while creating Maven Project | Selenium Forum
R
Ramya Seshan Posted on 29/07/2020

Hi Asish ,

  I exactly folled the steps in Cucumber - Maven creaton Project as explained in Module 36 - Video I [https://www.qtpselenium.com/selenium-training/module/36/12007]

I received the following error:

Description Resource Path Location Type
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 from/to central (http://repo.maven.apache.org/maven2): Failed to transfer http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.pom. Error code 501, HTTPS Required pom.xml /MyCucumberProject line 1 Maven Project Build Lifecycle Mapping Problem

 

Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (execution: default-compile, phase: compile) pom.xml /MyCucumberProject line 1 Maven Project Build Lifecycle Mapping Problem

Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (execution: default-testCompile, phase: test-compile) pom.xml /MyCucumberProject line 1 Maven Project Build Lifecycle Mapping Problem

Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (execution: default-compile, phase: compile) pom.xml /MyCucumberProject line 1 Maven Project Build Lifecycle Mapping Problem

Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (execution: default-testCompile, phase: test-compile) pom.xml /MyCucumberProject line 1 Maven Project Build Lifecycle Mapping Problem

I tried Maven >Update Project > Force Update , but it did not work

 

Below are contents of 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">
<modelVersion>4.0.0</modelVersion>
<groupId>com</groupId>
<artifactId>MyCucumberProject</artifactId>
<version>0.0.1-SNAPSHOT</version>
</project>

 

And snap shot of the Project 

Can you share your thoughts to get this resolved, Thanks !

 

 

  


A
Ashish Replied on 30/07/2020

Please try again as sometimes maven servers get down.

 

Please inform us if the issue persists.