-
Notifications
You must be signed in to change notification settings - Fork 168
Cannot resolve dependencies on Apache commons libraries #250
Description
After few months, I wanted to build one of my projects again after some changes. It uses rosjava, but can't resolve the dependencies on Apache commons libraries. A short excerpt:
Could not resolve all dependencies for configuration ':compileClasspath'.
> Could not find org.apache.commons:com.springsource.org.apache.commons.logging:1.1.1.
Searched in the following locations:
file:/home/ex-ratt/.m2/repository/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.pom
file:/home/ex-ratt/.m2/repository/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar
https://repo1.maven.org/maven2/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.pom
https://repo1.maven.org/maven2/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar
https://github.com/rosjava/rosjava_mvn_repo/raw/master/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.pom
https://github.com/rosjava/rosjava_mvn_repo/raw/master/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar
Required by:
project : > org.ros.rosjava_core:rosjava:0.2.2
project : > org.ros.rosjava_core:rosjava:0.2.2 > org.ros.rosjava_core:apache_xmlrpc_server:0.2.2
I had a look into the central Maven repository and indeed, there is no directory https://repo1.maven.org/maven2/org/apache/commons/com.springsource.org.apache.commons.logging/
. Instead, the libraries commons-logging
, commons-net
, commons-httpclient
, commons-codec
, commons-io
, and commons-lang
can be found at the root-level of the repository, e.g. https://repo1.maven.org/maven2/commons-logging/
.
I have no idea why that is and when it was changed, but it seems like you have to update all Gradle build files that declare dependencies on one of those Apache commons libraries. Otherwise, they cannot be found on systems where they do not reside in you local Gradle cache already.