Build not working in CircleCi environment

I am building github.com/devopsfolks/podam. Its building successfully in my local machine. Its failing in CircleCi.
Below is the error stack trace :slight_smile:
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/mylyn/github/org.eclipse.egit.github.core/3.1.0.201310021548-r/org.eclipse.egit.github.core-3.1.0.201310021548-r.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.071 s
[INFO] Finished at: 2017-03-13T02:26:55+00:00
[INFO] Final Memory: 25M/726M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:resolve-plugins (resolve-plugins) on project podam: Nested: Could not find artifact org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:3.1.0.201310021548-r in central (https://repo.maven.apache.org/maven2)

Can you double check the artifact URL?

https://repo.maven.apache.org/maven2/org/eclipse/mylyn/github/org.eclipse.egit.github.core/3.1.0.201310021548-r/org.eclipse.egit.github.core-3.1.0.201310021548-r.jar

That 404’s for me if I click on it directly.

How to fix this ? I have got the other url for the same dependency, but its still checking in maven central repository.

http://repo.jfrog.org/artifactory/libs-releases/org/eclipse/mylyn/github/org.eclipse.egit.github.core/3.1.0.201310021548-r/

org.eclipse.mylyn.github org.eclipse.egit.github.core 3.1.0.201310021548-r system src/org.eclipse.egit.github.core-3.1.0.201310021548-r.jar
1 Like

The above values I have put in my pom.xml file . In dependency tags

**

Maven External dependency not working in CircleCI.

**

I fixed it.

Would you mind sharing your pom.xml file as well as your circle.yml file?