最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Maven Install Error - Plugin or one of its dependencies could not be resolved - Stack Overflow

programmeradmin2浏览0评论

Appreciate any help or advice for a Java noob!

I have downloaded a package from Git, and am having trouble compiling the JAR.

It's been packed with Java 17, so I have installed JDK 1.7.0_79, and Maven 3.8.8, but when trying to run mvn clean install as instructed by the person who provided the code I receive the following errors.

Any help would be appreciated, as Java certainly isn't my area of expertise.

The machines are on my home network, with no proxies or other restrictions preventing internet access.

I have tried numerous things, including multiple different machines.

I have removed all entries from profiles, proxies, and mirrors in both my user and global settings.xml, but still get the same error whenever I try to compile the JAR.

I have not tried creating a repo for the plugins as I don't really know where to start with that.

The exact details of the error are as follows;

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< bazmar:lastWarAutoFl >------------------------
[INFO] Building lastWarAutoFl 2.0.1
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: .6/maven-resources-plugin-2.6.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.516 s
[INFO] Finished at: 2025-02-07T15:43:05+13:00
[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 (): transfer failed for .6/maven-resources-plugin-2.6.pom: Received fatal alert: protocol_version -> [Help 1]

Many thanks for your help.

Appreciate any help or advice for a Java noob!

I have downloaded a package from Git, and am having trouble compiling the JAR.

It's been packed with Java 17, so I have installed JDK 1.7.0_79, and Maven 3.8.8, but when trying to run mvn clean install as instructed by the person who provided the code I receive the following errors.

Any help would be appreciated, as Java certainly isn't my area of expertise.

The machines are on my home network, with no proxies or other restrictions preventing internet access.

I have tried numerous things, including multiple different machines.

I have removed all entries from profiles, proxies, and mirrors in both my user and global settings.xml, but still get the same error whenever I try to compile the JAR.

I have not tried creating a repo for the plugins as I don't really know where to start with that.

The exact details of the error are as follows;

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< bazmar:lastWarAutoFl >------------------------
[INFO] Building lastWarAutoFl 2.0.1
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: 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:  0.516 s
[INFO] Finished at: 2025-02-07T15:43:05+13:00
[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): transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom: Received fatal alert: protocol_version -> [Help 1]

Many thanks for your help.

Share Improve this question asked Feb 7 at 3:01 Matt FallonMatt Fallon 1 New contributor Matt Fallon is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. 4
  • Couldn't add the POM details, but the content is available here; github.com/bazmar59/lastWarAutoFL – Matt Fallon Commented Feb 7 at 3:02
  • Also, I'm not running an IDE, just trying to complete through command line. – Matt Fallon Commented Feb 7 at 3:03
  • 1 It's been packed with Java 17, so I have installed JDK 1.7.0_79 So why have you not installed >= Java 17 in that case? – g00se Commented Feb 7 at 10:14
  • There is simply no decision to make from your side... if JDK17 is required you have to use it...Also recommend to take a look at the answer of @SlawomirJaranowsi .... TLS 1.2 at minimum... – khmarbaise Commented Feb 7 at 18:01
Add a comment  | 

1 Answer 1

Reset to default 2

You have an error:

 Received fatal alert: protocol_version

Maven Central supports TLS 1.2 only, for JDK 1.7 you can try:

mvn -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 <goals>

reference: https://www.sonatype.com/blog/maven-central-supports-tls-1.2-only-june-15

发布评论

评论列表(0)

  1. 暂无评论