Cassandra
  1. Cassandra
  2. CASSANDRA-1851

Publish cassandra artifacts to the maven central repository

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Fix Version/s: 0.7.5
    • Component/s: Packaging
    • Labels:
      None

      Description

      See http://markmail.org/search/?q=list:org.apache.incubator.cassandra-dev#query:list%3Aorg.apache.incubator.cassandra-dev+page:1+mid:bmcd3ir33p3psqze+state:results

      I will be attaching a patch to this issue once I have got the ANT build to a state where it can push the cassandra artifacts to the maven central repository.

      1. MVN-PUBLISH.patch
        25 kB
        Stephen Connolly
      2. MVN-PUBLISH-v2.patch
        25 kB
        Stephen Connolly
      3. MVN-PUBLISH-v3.patch
        25 kB
        Stephen Connolly

        Issue Links

          Activity

          Hide
          Stephen Connolly added a comment -

          Depends on CASSANDRA-1848 as it is better to publish separate jars for the client libraries

          Show
          Stephen Connolly added a comment - Depends on CASSANDRA-1848 as it is better to publish separate jars for the client libraries
          Hide
          Paul R. Brown added a comment -

          As you work your way through this, please ensure that source and documentation artifacts are published as well. (It's great to have the Riptano repo, but those are currently missing for core Cassandra artifacts.)

          Show
          Paul R. Brown added a comment - As you work your way through this, please ensure that source and documentation artifacts are published as well. (It's great to have the Riptano repo, but those are currently missing for core Cassandra artifacts.)
          Hide
          Stephen Connolly added a comment -

          I am on the Maven PMC.... you can rest assured it will be a full set of artifacts

          Show
          Stephen Connolly added a comment - I am on the Maven PMC.... you can rest assured it will be a full set of artifacts
          Hide
          Nate McCall added a comment -

          FYI - the repository at http://maven.riptano.com was created initially to satisfy the immediate demands of dependencies in the Hector client. It's basically just a list of dependencies, but If there is anything there in our makeshift cassandra pom file you can re-use please help yourself.

          Otherwise, this is great as it means that we can put Hector up for Maven Central inclusion as well

          Thanks Stephen!

          Show
          Nate McCall added a comment - FYI - the repository at http://maven.riptano.com was created initially to satisfy the immediate demands of dependencies in the Hector client. It's basically just a list of dependencies, but If there is anything there in our makeshift cassandra pom file you can re-use please help yourself. Otherwise, this is great as it means that we can put Hector up for Maven Central inclusion as well Thanks Stephen!
          Hide
          Hannes Schmidt added a comment -
          Show
          Hannes Schmidt added a comment - Something to be aware of: http://code.google.com/p/concurrentlinkedhashmap/issues/detail?id=22
          Hide
          Stephen Connolly added a comment -

          This patch is for 0.7.x

          Once tested and applied I will produce a modified patch for 0.8.x based on this (there are changes required for 0.8.x as the dependencies and artifacts have changed)

          Show
          Stephen Connolly added a comment - This patch is for 0.7.x Once tested and applied I will produce a modified patch for 0.8.x based on this (there are changes required for 0.8.x as the dependencies and artifacts have changed)
          Hide
          Stephen Connolly added a comment -

          Attached patch has been battle tested by me

          Show
          Stephen Connolly added a comment - Attached patch has been battle tested by me
          Hide
          Stephen Connolly added a comment -

          The patch is required in order to make a release following http://wiki.apache.org/cassandra/HowToPublishToMavenCentral

          Show
          Stephen Connolly added a comment - The patch is required in order to make a release following http://wiki.apache.org/cassandra/HowToPublishToMavenCentral
          Hide
          Stu Hood added a comment -

          This will need urandom's final signoff, but on a first pass, it looks fantastic. The wiki page in particular is a great walkthrough: thank you Stephen!

          Show
          Stu Hood added a comment - This will need urandom's final signoff, but on a first pass, it looks fantastic. The wiki page in particular is a great walkthrough: thank you Stephen!
          Hide
          Eric Evans added a comment -

          Normal builds are taking longer, and seems to continually repeat the retrieve step. See https://gist.github.com/d4cf330a4b14889d9b84.

          Also, it seems to pretty consistently result in StackOverflowErrors when run from the ant builder in Eclipse.

          Show
          Eric Evans added a comment - Normal builds are taking longer, and seems to continually repeat the retrieve step. See https://gist.github.com/d4cf330a4b14889d9b84 . Also, it seems to pretty consistently result in StackOverflowErrors when run from the ant builder in Eclipse.
          Hide
          Stephen Connolly added a comment -

          OK. I have found the issue for normal builds taking longer. (http://jira.codehaus.org/browse/MANTTASKS-218) I have a fix, but will have to call a vote before I can release Maven ANT Tasks 2.1.3 with the fix. That will be sometime next week. If you are willing to apply the patch ahead of the fix, and we can just bump the Maven ANT Tasks version to 2.1.3 when I get Maven ANT Tasks out the door... or else we make an exception for the April 11th cut-off

          The change on Maven ANT Tasks is minor: http://jira.codehaus.org/secure/attachment/54609/MANTTASKS-218.patch

          I am not getting any StackOverflowErrors when running from the ant builder in Eclipse on my MacBookAir

          Show
          Stephen Connolly added a comment - OK. I have found the issue for normal builds taking longer. ( http://jira.codehaus.org/browse/MANTTASKS-218 ) I have a fix, but will have to call a vote before I can release Maven ANT Tasks 2.1.3 with the fix. That will be sometime next week. If you are willing to apply the patch ahead of the fix, and we can just bump the Maven ANT Tasks version to 2.1.3 when I get Maven ANT Tasks out the door... or else we make an exception for the April 11th cut-off The change on Maven ANT Tasks is minor: http://jira.codehaus.org/secure/attachment/54609/MANTTASKS-218.patch I am not getting any StackOverflowErrors when running from the ant builder in Eclipse on my MacBookAir
          Hide
          Eric Evans added a comment -

          Let's wait for 2.1.3. Since this is limited to the build, and in particular, the release process, I feel like it's OK to merge this after the 11th if that's what it takes.

          Show
          Eric Evans added a comment - Let's wait for 2.1.3. Since this is limited to the build, and in particular, the release process, I feel like it's OK to merge this after the 11th if that's what it takes.
          Hide
          Eric Evans added a comment -

          I tried testing publish and got this: https://gist.github.com/8b5fdcf719e2fe5507cc

          What's needed for GPG to work?

          Show
          Eric Evans added a comment - I tried testing publish and got this: https://gist.github.com/8b5fdcf719e2fe5507cc What's needed for GPG to work?
          Hide
          Stephen Connolly added a comment -

          Fix to allow gpg signing to work

          Show
          Stephen Connolly added a comment - Fix to allow gpg signing to work
          Hide
          Eric Evans added a comment -

          Still not working here, but we've moved from "Cannot obtain passphrase in batch mode", to:

          artifact:mvn] [INFO] --- maven-gpg-plugin:1.2:sign-and-deploy-file (default-cli) @ standalone-pom ---
          [artifact:mvn] gpg: skipped "8D77295D": bad passphrase
          [artifact:mvn] gpg: signing failed: bad passphrase
          
          Show
          Eric Evans added a comment - Still not working here, but we've moved from "Cannot obtain passphrase in batch mode", to: artifact:mvn] [INFO] --- maven-gpg-plugin:1.2:sign-and-deploy-file (default-cli) @ standalone-pom --- [artifact:mvn] gpg: skipped "8D77295D": bad passphrase [artifact:mvn] gpg: signing failed: bad passphrase
          Hide
          T Jake Luciani added a comment -

          This worked for me +1

          Eric, looks like you might have put the keyname in the passphrase field?

          Show
          T Jake Luciani added a comment - This worked for me +1 Eric, looks like you might have put the keyname in the passphrase field?
          Hide
          Eric Evans added a comment -

          Eric, looks like you might have put the keyname in the passphrase field?

          No, Stephen's latest wiki edit explains it; You can't have a passphrase set and use the agent.

          Show
          Eric Evans added a comment - Eric, looks like you might have put the keyname in the passphrase field? No, Stephen's latest wiki edit explains it; You can't have a passphrase set and use the agent.
          Hide
          Eric Evans added a comment -

          Any news on when the updated MAT will land?

          Show
          Eric Evans added a comment - Any news on when the updated MAT will land?
          Hide
          Stephen Connolly added a comment -

          Patch updated to use Maven ANT Tasks 2.1.3 (you will have to await the sync before the patch works. check this url: http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/ and when 2.1.3 appears (some time in the next 8 hours (after 8am GMT+1h Sun 17/Apr/11))

          Show
          Stephen Connolly added a comment - Patch updated to use Maven ANT Tasks 2.1.3 (you will have to await the sync before the patch works. check this url: http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/ and when 2.1.3 appears (some time in the next 8 hours (after 8am GMT+1h Sun 17/Apr/11))
          Hide
          Eric Evans added a comment -

          OK, this has been committed to 0.7; If you want to forward-port to the 0.8 branch, go ahead.

          Show
          Eric Evans added a comment - OK, this has been committed to 0.7; If you want to forward-port to the 0.8 branch, go ahead.
          Hide
          Hudson added a comment -

          Integrated in Cassandra-0.7 #438 (See https://hudson.apache.org/hudson/job/Cassandra-0.7/438/)
          maven-central pulishing

          Patch by Stephen Connolly; reviewed by eevans for CASSANDRA-1851

          Show
          Hudson added a comment - Integrated in Cassandra-0.7 #438 (See https://hudson.apache.org/hudson/job/Cassandra-0.7/438/ ) maven-central pulishing Patch by Stephen Connolly; reviewed by eevans for CASSANDRA-1851
          Hide
          Jonathan Ellis added a comment -

          I'm marking this resolved since we're about to release 0.7.5, so it would be confusing to leave it open. I will also mark r1094611 as merged (--record-only) in 0.8+. So if/when someone ports this to 0.8, please open a new ticket.

          Show
          Jonathan Ellis added a comment - I'm marking this resolved since we're about to release 0.7.5, so it would be confusing to leave it open. I will also mark r1094611 as merged (--record-only) in 0.8+. So if/when someone ports this to 0.8, please open a new ticket.

            People

            • Assignee:
              Stephen Connolly
              Reporter:
              Stephen Connolly
              Reviewer:
              Eric Evans
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development