Travis build fail: nexus.codehaus.org unreachable

Hi there,

starting from today I am getting build failures on travis CI for builds of the radiology module with both

  • openjdk 6
  • oraclejdk 7

the error is

[ERROR] Failed to execute goal on project radiology-api: Could not resolve dependencies for project org.openmrs.module:radiology-api:jar:0.1.0.0-dev-SNAPSHOT: Failed to collect dependencies at org.openmrs.module:reporting-api:jar:0.9.9-SNAPSHOT: Failed to read artifact descriptor for org.openmrs.module:reporting-api:jar:0.9.9-SNAPSHOT: Could not transfer artifact org.openmrs.module:reporting-api:pom:0.9.9-SNAPSHOT from/to codehaus-snapshots (https://nexus.codehaus.org/snapshots/): nexus.codehaus.org: Unknown host nexus.codehaus.org -> [Help 1]

https://travis-ci.org/openmrs/openmrs-module-radiology/jobs/118267427#L1031

I havent changed anything in the pom’s so that it weird.

It is trying to contact server https://nexus.codehaus.org/snapshots/ which is not up anymore, so I get that.

@cintiadr do you maybe have an idea ?

@teleivo, the error you’re seeing is because @mseaton released the reporting module today, thus 0.9.9-SNAPSHOT (referred to here) is no longer valid.

You should be able to just change the dependency to 0.9.9. (I don’t know if you strictly needed a snapshot before, but I assume you no longer do.)

1 Like

thanks for your answer! problem solved :ok_hand:

and do you know or @mseaton why travis was trying to download it from: [INFO] Downloading: https://nexus.codehaus.org/snapshots/org/openmrs/module/reporting-api/0.9.9-SNAPSHOT/reporting-api-0.9.9-SNAPSHOT.pom

I thought this site https://nexus.codehaus.org/snapshots/ didnt work anymore.

Probably that’s a fallback location defined in your pom.xml, or maybe in maven’s super pom, that is checked in case the artifact isn’t found in the openmrs’s maven repo.