Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

astyanax-{cassandra,thift} 1.56.28 invalid pom.xmls (on Maven Central) #225

Closed
LannyRipple opened this Issue · 5 comments

5 participants

@LannyRipple

From the pom.xml files

<dependency>
  <groupId>org.apache.cassandra</groupId>
  <artifactId>cassandra-all</artifactId>
  <version>1.2.+</version>
  <scope>compile</scope>
</dependency>

<dependency>
  <groupId>org.apache.cassandra</groupId>
  <artifactId>cassandra-thrift</artifactId>
  <version>1.2+</version>
  <scope>compile</scope>
</dependency>

From trying to build a project with maven using the Astyanax dependencies

Could not find artifact org.apache.cassandra:cassandra-thrift:jar:1.2+ in central (http://repo.maven.apache.org/maven2)

I suspect the pom files are created by the (non-maven) build system you use. The solution is to fix the cassandra versions (at 1.2.2 or whatever is latest) to offer a repeatable build.

@quidryan
Owner

None of the Netflix projects should use a dynamic version for dependencies, because Gradle can't automatically publish dynamic revision. It could be done, but it just isn't yet in the gradle-template.

@LannyRipple

quidryan,

Not sure if that was back at me or a general statement. By "1.2.2 or whatever is latest" I should be clear that I don't mean dynamic LATEST. Current Cassandra is 1.2.2 so that would be my suggestion for the version to use (and if this takes long enough for 1.2.3 or whatever to come out then the version should be 1.2.3 or whatever). Using dynamic versions is a recipe for never being able to reproduce a build. I should have been clearer.

My goal is to be able to use the jars in Maven Central as dependencies in my project and that's currently broken because of the Cassandra version listed in the pom.xml files.

@dojadop

If you haven't been able to use the 1.56.28 version yet you can use the following workaround in your pom file for the time being:

<dependencies>
    <!-- For Astyanax -->
    <dependency>
        <groupId>com.netflix.astyanax</groupId>
        <artifactId>astyanax-core</artifactId>
        <version>1.56.28</version>
    </dependency>
    <dependency>
        <groupId>com.netflix.astyanax</groupId>
        <artifactId>astyanax-thrift</artifactId>
        <version>1.56.28</version>
        <exclusions>
            <exclusion>
                <artifactId>cassandra-all</artifactId>
                <groupId>org.apache.cassandra</groupId>
            </exclusion>
            <exclusion>
                <artifactId>cassandra-thrift</artifactId>
                <groupId>org.apache.cassandra</groupId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.apache.cassandra</groupId>
        <artifactId>cassandra-all</artifactId>
        <version>1.2.1</version>
    </dependency>
    <dependency>
        <groupId>org.apache.cassandra</groupId>
        <artifactId>cassandra-thrift</artifactId>
        <version>1.2.1</version>
    </dependency> 
</dependencies>
@mac-

Thanks for the workaround @dojadop! I hope this gets resolved soon.

@elandau
Owner

This is resolved with version 1.56.34. Please let me know if you are still seeing issues.

@elandau elandau closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.