0

Getting this error while clean build maven project.

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert:

Added all required maven dependencies.
Downloaded jar and uploaded it to .m2 repository.

need to download maven-clean-plugin:2.5.
DanielM
  • 3,598
  • 5
  • 37
  • 53
ram
  • 49
  • 4
  • 2
    can you add the pom.xml file please, the maven log output will be helpful as well – Benjamin Slabbert Sep 10 '19 at 18:08
  • Possible duplicate of [Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved](https://stackoverflow.com/questions/30522679/plugin-org-apache-maven-pluginsmaven-clean-plugin2-5-or-one-of-its-dependencie) – Gaurav Jeswani Sep 10 '19 at 18:08
  • org.powermock powermock-api-mockito 1.6.4 test org.apache.maven maven-plugin-api 3.2.5 org.apache.maven.plugins maven-clean-plugin 2.5 – ram Sep 10 '19 at 18:16
  • so you should be declaring the plugins in the section of your pom. – Benjamin Slabbert Sep 10 '19 at 18:35
  • a simple example will be like this: org.apache.maven.plugins maven-compiler-plugin 3.8.0 -parameters 1.8 1.8 – Benjamin Slabbert Sep 10 '19 at 18:36
  • Based on the "Fatal Alert"-part it looks like you're hitting https://stackoverflow.com/questions/50824789/why-am-i-getting-received-fatal-alert-protocol-version-or-peer-not-authentic – Robert Scholte Sep 10 '19 at 19:10

0 Answers0