Failed to read artifact descriptor for org.apache.Maven.plugins: Maven-surefire-plugin: jar:3.0.0-M3: - maven

I have just created Maven project and running pom.xml as Maven test. But I am stuck due to this above error. FYI, there are no tests present, just I have created new Maven project. I tried all the option mentioned above by other users but it not working for me (Update, adding plugins etc.
Complete error: "Plugin org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:3.0.0-M3: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:3.0.0-M3 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]"

Related

Failed to collect dependencies maven

getting this error when trying to maven install
Failed to execute goal
org.apache.maven.plugins:maven-jar-plugin:3.1.2:jar (default-jar) on
project AbacusLibraryServer: Execution default-jar of goal
org.apache.maven.plugins:maven-jar-plugin:3.1.2:jar failed: Plugin
org.apache.maven.plugins:maven-jar-plugin:3.1.2 or one of its
dependencies could not be resolved: Failed to collect dependencies at
org.apache.maven.plugins:maven-jar-plugin:jar:3.1.2 ->
org.apache.maven.shared:file-management:jar:3.0.0: Failed to read
artifact descriptor for
org.apache.maven.shared:file-management:jar:3.0.0: Could not transfer
artifact org.apache.maven.shared:file-management:pom:3.0.0 from/to
central (https://repo.maven.apache.org/maven2): Transfer failed for
https://repo.maven.apache.org/maven2/org/apache/maven/shared/file-management/3.0.0/file-management-3.0.0.pom:
Received fatal alert: protocol_version -> [Help 1]
i can see a lot of .lastUpdated files in maven.
tried using maven clean and then maven install.
i tried deleting all these files and doing maven force update using eclipse not working.
what is working is downloading every jar file one by one from maven repository already done for around 20 but there are still more and no idea how much isn't there a easier way.
also not using any proxy tried using mobile network and personal wifi.

Getting Maven issue

Getting Maven issue, below is the issue that I am getting:
[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): repo.maven.apache.org:
Unknown host repo.maven.apache.org -> [Help 1]
I have pom.xml and settings.xml in the same folder, where I am running the mvn package command. Please help.
The issue was with incorrect configuration in settings.xml which I have corrected and now everything is working fine.

maven project setup configuration in eclipse

I am new to maven. I tried to setup my first maven project in eclipse IDE, but while creating the project I am getting an error:
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'SpringLoginApplication'.
Could not calculate build plan: 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
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 calculate build plan: 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
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
I am unable to find the reason for this error. Can anybody please help me on this regard?

Building Oozie failes

I am using maven 3.2.1,java 1.7 and Oozie4.0.0. when I tried to build it I got maven plugin and dependency error.[ERROR] Failed to execute goal on project oozie-client: Could not resolve dependencies for project org.apache.oozie:oozie-client:jar:4.0.0: Failed to collect dependencies at junit:junit:jar:4.10: Failed to read artifact descriptor for junit:junit:jar:4.10: Could not transfer artifact junit:junit:pom:4.10 from/to central (http://repo1.maven.org/maven2): repo1.maven.org: Name or service not known: Unknown host repo1.maven.org: Name or service not known -> [Help 1]
Well, it seems you can't access to repo1.maven.org. Try a another maven repo and check your internet connection ;)

Maven assembly plugin fails to execute

I'm getting this message after attempting to "mvn package". It seems like there's an issue with retrieving the google collections jar, but I'm not sure if that's the only problem.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.3:single (make-assembly) on project recommender:
Execution make-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:2.3:single failed:
Plugin org.apache.maven.plugins:maven-assembly-plugin:2.3 or one of its dependencies could not be resolved:
Failed to collect dependencies for org.apache.maven.plugins:maven-assembly-plugin:jar:2.3 ():
Failed to read artifact descriptor for com.google.collections:google-collections:jar:1.0:
Could not transfer artifact com.google.collections:google-collections:pom:1.0 from/to central (http://repo1.maven.org/maven2):
Specified destination directory cannot be created: /Users/danquach/.m2/repository/com/google/collections/google-collections/1.0 -> [Help 1]
The original error should be a local problem:
Specified destination directory cannot be created:
/Users/danquach/.m2/repository/com/google/collections/google-collections/1.0
Is your drive full?
Do you have write access to this path?
You can try to create /Users/danquach/.m2/repository/com/google/collections and call maven again.

Resources