linux-on-ibm-z / docs

A collection of instructions and tutorials to help you get your favorite software up and running on Linux on z
147 stars 57 forks source link

Geode build fails due to snappy version #5

Closed swelton closed 7 years ago

swelton commented 8 years ago

Build instructions state:

dependencies {
....
    compile 'org.xerial.snappy:snappy-java:1.1.2'
}

However the build fails because it dowsn't like this version and attempts to use the current (it seems you cannot override it in this file, probably somewhere else):

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':gemfire-core:compile'.
Could not find org.xerial.snappy:snappy-java:1.1.21.1.1.6.
  Searched in the following locations:
       file:/home/tester/.m2/repository/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.pom
       file:/home/tester/.m2/repository/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.jar
       https://repo1.maven.org/maven2/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.pom
       https://repo1.maven.org/maven2/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.jar
       http://repo.spring.io/release/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.pom
       http://repo.spring.io/release/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.jar
       http://repo.spring.io/milestone/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.pom
       http://repo.spring.io/milestone/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.jar
       http://repo.spring.io/snapshot/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.pom
       http://repo.spring.io/snapshot/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.jar
       http://repo.spring.io/libs-release/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.pom
       http://repo.spring.io/libs-release/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.jar
       http://repo.spring.io/ext-release-local/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.pom
       http://repo.spring.io/ext-release-local/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.jar
       http://dist.gemstone.com/maven/release/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.pom
       http://dist.gemstone.com/maven/release/org/xerial/snappy/snappy-java/1.1.21.1.1.6/snappy-java-1.1.21.1.1.6.jar
   Required by:
       org.apache.geode:gemfire-core:1.0.0-incubating.M1

If building with defaults in build.gradle, then it will build.

aborkar-ibm commented 8 years ago

Hello,

The snappy-java version seems to be wrong here. The gemfire-core/build.gradle needs be to modified as follows: Change compile 'org.xerial.snappy:snappy-java:' + project.'snappy-java.version' to compile 'org.xerial.snappy:snappy-java:1.1.2'

From the error logs, seems like the line was changed to compile 'org.xerial.snappy:snappy-java:1.1.2' + project.'snappy-java.version'

Regards

garyliu1 commented 8 years ago

@swelton Are you able to proceed with the Geode build? If so, please confirm with us and we can close this issue. Thanks.

swelton commented 7 years ago

Sorry about the late reply. Yes we were able to build with the above modification, many thanks.