Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile dependency com.opengamma.external.json:json is not available in maven central repository #11

Closed
igor-korotkov opened this issue Sep 26, 2015 · 7 comments

Comments

@igor-korotkov
Copy link

Hello. I've tried to use your library in my application with Gradle build system (with maven central repository) but I got this error during compilation:

Could not resolve all dependencies for configuration ':app-core:compile'.

Could not resolve com.opengamma.external.json:json:1.0.0.v20101106.
Required by:
com.haulmont.guardian:app-core:0.1-SNAPSHOT > com.jimmoores:quandl:1.2.0
java.lang.NullPointerException (no error message)

I've checked, and, indeed, there isn't no library with groupId "com.opengamma.external.json" available in maven central: http://search.maven.org/#search%7Cga%7C1%7Ccom.opengamma.external.json

Also: http://mvnrepository.com/artifact/com.opengamma.external.json/json/1.0.0.v20101106

@jimmoores
Copy link
Owner

Hi,

You need to include the opengamma maven repository. From the POM:

<repositories>
  <repository>
    <id>og-public</id>
    <name>OG Public</name>
    <url>http://maven.opengamma.com/nexus/content/groups/public</url>
  </repository>
</repositories>
<pluginRepositories>
  <pluginRepository>
    <id>og-public</id>
    <name>OG Public</name>
    <url>http://maven.opengamma.com/nexus/content/groups/public</url>
  </pluginRepository>
</pluginRepositories>

I'm going to try and get rid of them eventually and switch to exclusively using libraries in Maven central, but if you add these you should be able to build fine.

@martinandersson
Copy link
Contributor

What Jim said, with some Gradle flavor:

repositories {
    maven {
        // Quandl4j has a dependency not in Maven: 'com.opengamma.external.json:json:1.0.0.v20101106'
        // Source of this URL: https://github.com/jimmoores/quandl4j/blob/master/pom.xml
        url "http://maven.opengamma.com/nexus/content/groups/public"
    }
}

For completeness, here's all the magic text we need in our build.gradle file:

repositories {
   // Or use mavenCentral(). I prefer new and cool shit + HTTPS, hence jcenter():
    jcenter()
}

repositories {
    maven {
        // Quandl4j has a dependency not in Maven: 'com.opengamma.external.json:json:1.0.0.v20101106'
        // Source of this URL: https://github.com/jimmoores/quandl4j/blob/master/pom.xml
        url "http://maven.opengamma.com/nexus/content/groups/public"
    }
}

dependencies {
    compile 'com.jimmoores:quandl:1.3.0'
}

@jimmoores
Copy link
Owner

I hope you don't mind but I've added this info to the README, many thanks for sharing!

@misto
Copy link

misto commented Sep 2, 2016

I'm now getting a "Bad Gateway" from maven.opengamma.com. Any ideas if it's gone for good or just a temporary problem?

@misto
Copy link

misto commented Sep 2, 2016

I've just tried to replace their json library with the original one (http://mvnrepository.com/artifact/org.json/json) and it builds and tests fine.. any specific reason why you used theirs?

@jimmoores
Copy link
Owner

Hi Mirko,

Sorry you've been having trouble. I think OpenGamma's artifactory repo is
back up now (seems to be when I go there). I used the opengamma one for
solid licensing reasons: when I was CTO at OpenGamma a license review
discovered there was a legally completely ambiguous clause in the org.json
license "The Software shall be used for Good, not Evil." that in effect
renders that project useless by anyone who cares about a proper license.
The OpenGamma version is a drop in compatible replacement based on google
code - at the time there was nothing else equivalent, but I'm happy to be
proved wrong.

Cheers,

Jim

On 2 September 2016 at 13:39, Mirko Stocker notifications@github.com
wrote:

I've just tried to replace their json library with the original one (
http://mvnrepository.com/artifact/org.json/json) and it builds and tests
fine.. any specific reason why you used theirs?


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#11 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADG-xbV5tfcTeROshd5VfQStgCvIxV4ks5qmBkcgaJpZM4GESIj
.

@misto
Copy link

misto commented Sep 3, 2016

I didn't realize they had this in their license, thanks for making me aware! And yes, it's up again. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants