Maven: Failed to Read Artifact Descriptor

Failed to read artifact descriptor for org.apache.maven.plugins:maven-source-plugin:jar:2.4

Two possible situations :

  • Your company uses a proxy to connect to the public Maven repository. Then ask someone in your company what the IP address of the proxy is then put it in your settings.xml file

  • Your company has its/their own Maven repository/ies (Nexus repository for example). Then ask someone in your company what the Nexus repository is then put it in your pom.xml or in your settings.xml. See Adding maven nexus repo to my pom.xml and https://maven.apache.org/guides/mini/guide-multiple-repositories.html

Maven: Failed to read artifact descriptor error

OK...got it working.

@rkosegi's answer put me on the right path. The root CA cert used by my browser is different than the one jdk uses. That's why I can view the repo in browser with no error but maven cannot access the repo.

Somehow my company (a financial institution) has a root CA cert overriding all the other root CA cert, that means, when I open any website (for example stackoverflow), the cert path always shows like this:

Sample Image

I am not a system admin and not sure how this is done, but anyhow, all I need to do is save the Root CA cert as a *.CER file and add it to the jdk's cacert folder.

After that, the command "mvn clean install" runs to complete with no error

Missing artifact' and 'Failed to read artifact descriptor' errors on Spring MVC project

First of all, it's always a good idea to run mvn from command line. It isolates the problem from your IDE and shows logs when maven resolves artifacts.

Also, you can add -X CLI option which produces more debug output and you should see some useful errors:

mvn clean install -X

ArtifactDescriptorException: Failed to read artifact descriptor

i solved my problem.

solution:

i used the Dependencies window or (right-click Maven -> Add Dependency) then i search for spring-core and spring-beans others I have not found.

and i add

    <dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>3.2.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>3.2.2.RELEASE</version>
</dependency>

Why am I getting Failed to read artifact descriptor for org.springframework:spring-core:jar:5.2.0.BUILD-SNAPSHOT even though it exists?

You need to use https in your repository declaration.



Related Topics



Leave a reply



Submit