rosjava / rosjava_bootstrap

Simple catkin/rosjava plugins for gradle.
17 stars 60 forks source link

Revise maven repository dependencies #40

Open stonier opened 9 years ago

stonier commented 9 years ago

Revise our maven url sources in the ros plugin @talregev is using the list below. I do not believe we need to add the rep.maven.xxx or central.maven.xxx - these should be automatically picked up by mavenCentral(). The jfrog is the standout one there - what is in that?

rootProject.allprojects {
    repositories {
        maven {
            url "https://github.com/talregev/rosjava_mvn_repo/raw/master/"
        }
        maven {
            url "https://github.com/rosjava/rosjava_mvn_repo/raw/master/"
        }
        maven {
            url "http://central.maven.org/maven2/"
        }
        maven {
            url "https://repo.jfrog.org/artifactory/libs-releases/"
        }
        maven {
            url "https://repo.maven.apache.org/maven2/"
        }
        maven {
            url "https://repo1.maven.org/maven2/"
        }
    }
}
talregev commented 9 years ago

from jforg we can pull all the jars dependencies: this dependencies alredy was in ours github maven repository so i added this links that it will update from here and not from github.

http://repo.jfrog.org/artifactory/libs-releases/org/apache/commons/com.springsource.org.apache.commons.codec/ http://repo.jfrog.org/artifactory/libs-releases/org/apache/commons/com.springsource.org.apache.commons.httpclient/ http://repo.jfrog.org/artifactory/libs-releases/org/apache/commons/com.springsource.org.apache.commons.io/ http://repo.jfrog.org/artifactory/libs-releases/org/apache/commons/com.springsource.org.apache.commons.lang/ http://repo.jfrog.org/artifactory/libs-releases/org/apache/commons/com.springsource.org.apache.commons.logging/ http://repo.jfrog.org/artifactory/libs-releases/org/apache/commons/com.springsource.org.apache.commons.net/

in github it found here: https://github.com/rosjava/rosjava_mvn_repo/tree/master/org/apache/commons

talregev commented 9 years ago

it better to switch to apache.directory.studio instead com.springsource.org like @DmitryDzz has done in his fix

i will write down the links again:

i will change that at rosjave_bootstrap and rosjava_core, and i will see if it pass all the tests.

stonier commented 9 years ago

Started migration in rosjava_bootstrap. Will hold off on the others for now till we're sure it's all working.

Also - rosjava_core is a problem - org.apache.commons.net isn't in the directory studio group.

talregev commented 9 years ago

can you add this links to manven repository?

talregev commented 9 years ago

Started migration in rosjava_bootstrap.

make sure after that migration, android_core still compile. I try to do this, and i get an conflict with old jar: com.springsource.org.apache.commons.codec:1.3.0

stonier commented 9 years ago

Ah, this thing:

> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
        /opt/android-sdk/build-tools/21.1.2/dx --dex --output /opt/android_core/src/android_core/android_tutorial_pubsub/build/intermediates/dex/release --input-list=/opt/android_core/src/android_core/android_tutorial_pubsub/build/intermediates/tmp/dex/release/inputList.txt
  Error Code:
        2
  Output:

        UNEXPECTED TOP-LEVEL EXCEPTION:
        com.android.dex.DexException: Multiple dex files define Lorg/apache/commons/codec/Decoder;
                at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
                at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
                at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
talregev commented 9 years ago

yes :) need to understand how get rid of this. I try also compile javaros_core with new jars apache.directory.studio dependencies too but it didn't help.

I think need also to re-create all the messages and rosjava_messages with new dependencies

can you check it?

If you succeeded that will be great. and you will need to update maven_repository sooner that you thought. can

can you ask @DmitryDzz how he solve this issue?

talregev commented 9 years ago

i added you on gtalk. so if you available to talk ....

DmitryDzz commented 9 years ago

I've been watching you 8-) I didn't try to solve this issue. My project is on hold for a while. I believe I'll come back in a month. Sorry.

talregev commented 9 years ago

it ok :)

talregev commented 9 years ago

you can close this issue: https://github.com/rosjava/rosjava_bootstrap/issues/37