You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ram Kumar Viswa <ra...@gmail.com> on 2020/10/27 16:17:55 UTC

Getting the following errors while working with Maven

Hi I'm getting the following errors while working with maven project

I have installed JDK 1.7 and using eclipse mars version.

I downloaded maven 3.6.3 and set the classpath as per that MVN_HOME and
path.

while trying to create a maven project from eclipse i get the following
errors in POM .XML

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>w2a</groupId>
  <artifactId>w2automation</artifactId>
  <version>0.0.1-SNAPSHOT</version>
 </project>

Error in pom.xml
Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6
from https://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-resources-plugin:pom:2.6 from/to
central (https://repo.maven.apache.org/maven2): Received fatal alert:
 protocol_version

Generate sources
[INFO] Scanning for projects...
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building w2automation 0.0.1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.237 s
[INFO] Finished at: 2020-10-27T21:44:45+05:30
[INFO] Final Memory: 5M/122M
[INFO] -----------------------------

Maven Compile

[INFO] Scanning for projects...
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building w2automation 0.0.1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO] Downloading:
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.772 s
[INFO] Finished at: 2020-10-27T21:45:40+05:30
[INFO] Final Memory: 5M/122M
[INFO]
------------------------------------------------------------------------
[ERROR] 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:
protocol_version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

Maven Install
[INFO] Scanning for projects...
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building w2automation 0.0.1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO] Downloading:
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6.323 s
[INFO] Finished at: 2020-10-27T21:46:59+05:30
[INFO] Final Memory: 5M/122M
[INFO]
------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one
of its dependencies could not be resolved: Failed to read artifact
descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6:
Could not transfer artifact
org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (
https://repo.maven.apache.org/maven2): Received fatal alert:
protocol_version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException.

Kindly let me know what changes I should do in order to make it work,


Thank you in advance
Ram Kumar V

Re: Getting the following errors while working with Maven

Posted by Anders Hammar <an...@hammar.net>.
Could you try with JDK 1.8? Based on the error message I'm guessing that
your JDK doesn't support the protocol that central repo requires.

/Anders

On Tue, Oct 27, 2020 at 6:10 PM Ram Kumar Viswa <ra...@gmail.com> wrote:

> Hi I'm getting the following errors while working with maven project
>
> I have installed JDK 1.7 and using eclipse mars version.
>
> I downloaded maven 3.6.3 and set the classpath as per that MVN_HOME and
> path.
>
> while trying to create a maven project from eclipse i get the following
> errors in POM .XML
>
> 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>w2a</groupId>
>   <artifactId>w2automation</artifactId>
>   <version>0.0.1-SNAPSHOT</version>
>  </project>
>
> Error in pom.xml
> Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6
> from https://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-resources-plugin:pom:2.6 from/to
> central (https://repo.maven.apache.org/maven2): Received fatal alert:
>  protocol_version
>
> Generate sources
> [INFO] Scanning for projects...
> [INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building w2automation 0.0.1-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 0.237 s
> [INFO] Finished at: 2020-10-27T21:44:45+05:30
> [INFO] Final Memory: 5M/122M
> [INFO] -----------------------------
>
> Maven Compile
>
> [INFO] Scanning for projects...
> [INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building w2automation 0.0.1-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Downloading:
>
> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3.772 s
> [INFO] Finished at: 2020-10-27T21:45:40+05:30
> [INFO] Final Memory: 5M/122M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] 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:
> protocol_version -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
>
> Maven Install
> [INFO] Scanning for projects...
> [INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building w2automation 0.0.1-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Downloading:
>
> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 6.323 s
> [INFO] Finished at: 2020-10-27T21:46:59+05:30
> [INFO] Final Memory: 5M/122M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one
> of its dependencies could not be resolved: Failed to read artifact
> descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6:
> Could not transfer artifact
> org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (
> https://repo.maven.apache.org/maven2): Received fatal alert:
> protocol_version -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
> .
>
> Kindly let me know what changes I should do in order to make it work,
>
>
> Thank you in advance
> Ram Kumar V
>