chalie001
asked on
Plugin org.apache.maven.plugins:maven-install-plugin:2.5.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.
hi am geting this error
Scanning for projects...
[INFO]
[INFO] ----------< com.minutes.rest.webservices:restful -web-servi ce >----------
[INFO] Building restful-web-service 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]------------------------- --------
[INFO] Downloading from : https://repo.spring.io/milestone/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.pom
[INFO] Downloading from : https://repo.spring.io/snapshot/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.pom
[INFO] Downloading from : https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.pom
[INFO] ------------------------------------ ---------- ---------- ---------- ------
[INFO] BUILD FAILURE
[INFO] ------------------------------------ ---------- ---------- ---------- ------
[INFO] Total time: 8.513 s
[INFO] Finished at: 2020-05-23T20:39:47+02:00
[INFO] ------------------------------------ ---------- ---------- ---------- ------
Plugin org.apache.maven.plugins:maven-insta ll-plugin: 2.5.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:m aven-insta ll-plugin: jar:2.5.2: Could not transfer artifact org.apache.maven.plugins:m aven-insta ll-plugin: pom:2.5.2 from/to spring-milestones (https://repo.spring.io/milestone): java.security.ProviderExce ption: java.security.NoSuchAlgori thmExcepti on: SunTls12MasterSecret KeyGenerator not available -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
What Java version do you use? If you're using any version <= 1.8, I suggest you use any that is > 1.8.
ASKER
java --version
java 11.0.6 2020-01-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.6+8-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.6+8-LTS, mixed mode)
java 11.0.6 2020-01-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.6+8-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.6+8-LTS, mixed mode)
Can you please post the pom.xml file? For some reason maven is trying to get the maven plug-ins from the spring repository.
ASKER
this pom
pom.txt
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.