Search code examples
javagradleapache-commons-cli

Apache repository down?


I am trying to build a program in java which uses Apache Commons CLI and I have gotten this error - it was working well until now. Does it mean Apache repository is down? If so, what is the best way to resolve this issue?

Could not resolve all dependencies for configuration ':compile'.

Could not resolve commons-cli:commons-cli:1.3-SNAPSHOT. Required by: :dpg-variant-store:0.1 Unable to load Maven meta-data from https://repository.apache.org/content/groups/snapshots/commons-cli/commons-cli/1.3-SNAPSHOT/maven-metadata.xml. Could not GET 'https://repository.apache.org/content/groups/snapshots/commons-cli/commons-cli/1.3-SNAPSHOT/maven-metadata.xml'. Received status code 503 from server: Service Temporarily Unavailable


Solution

  • @simbo1905 is correct. It may be possible that snapshot library may have been edited or renamed. You must use a finalized library. You can use this URL for obtaining finalized library https://repository.jboss.org/nexus/content/groups/public/commons-cli/commons-cli/

    You may have to edit your repository URL to read from this as Apache repository is only having a snapshot.