In continuation of my previous question not-able-to-locate-artifact-in-maven-repository, I am able to locate the artifact in maven repo thereby adding the corresponding URL of the artifact in pom.xml
I am still not able to download the artifact from the maven repository.
- Using my company provided maven settings.xml which uses my company repository, when I am not connected to VPN of my company and then do maven import it doesn't work with below error.
Could not resolve dependencies for project com.indore:galaxy:jar:1.0-SNAPSHOT: Failed to collect dependencies at org.elasticsearch.client:elasticsearch-rest-high-level-client:jar:7.4.1: Failed to read artifact descriptor for org.elasticsearch.client:elasticsearch-rest-high-level-client:jar:7.4.1: Could not transfer artifact org.elasticsearch.client:elasticsearch-rest-high-level-client:pom:7.4.1 from/to nexus (http://nexus.dev.<my-company-name>.com/nexus/content/groups/public): nexus.dev.<my-company-name>.com: nodename nor servname provided, or not known:
So can anyone please tell me what I am missing?
Edit 1
As stated by @Opster Elasticsearch Ninja I have provided the mirror tag in my maven settings.xml
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://nexus.dev.<my-company>.com/nexus/content/groups/public</url>
</mirror>
And, Intellij maven settings is: