Return-Path: Delivered-To: apmail-cassandra-dev-archive@www.apache.org Received: (qmail 30481 invoked from network); 17 Jan 2011 04:25:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jan 2011 04:25:42 -0000 Received: (qmail 77835 invoked by uid 500); 17 Jan 2011 04:25:41 -0000 Delivered-To: apmail-cassandra-dev-archive@cassandra.apache.org Received: (qmail 77763 invoked by uid 500); 17 Jan 2011 04:25:39 -0000 Mailing-List: contact dev-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list dev@cassandra.apache.org Delivered-To: moderator for dev@cassandra.apache.org Received: (qmail 44989 invoked by uid 99); 16 Jan 2011 17:52:26 -0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hadolphs@gmail.com designates 209.85.215.172 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=+MBob0Wm89b2e9WlpDJOfGHEbZjt3kY3y9IqalrDSfY=; b=Meda+AyOOH2TXgTzhyjF396pF6/22/0tlA99gny8qyXpgCVeW2RT7XUvPJ1zOEomz0 9mOQjgNI/IwSa/OVZCO5dcOK6aFBTzl7mKRRJElnTiSZ2Pdkqrdtp/1oBSK+oHbMVQKf N0Ev3eeM1gfO8e3V2vRypeg2mpzZ4Z3IxqGaw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=rilSlvaIMNmFm6A2pRfUX33KEYdp6RdvAhxZCPX1ujPsH4BfdS863AEFYZiGpFckQw 3j8JLjuuwcJrhBf9EhCQteB+jvtMyieQuKrEZz/p/f0l4iHzVEc9m7/f/mFyWG96YXpF 51QgdS+ydJRfU2ViXM0qRX5TWjL0tZS+okuQ0= MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 16 Jan 2011 12:51:58 -0500 Message-ID: Subject: Re: Cassandra-Maven-Plugin From: Hellmut Adolphs To: hector-users@googlegroups.com Cc: dev , user@cassandra.apache.org, hector-dev@googlegroups.com Content-Type: multipart/alternative; boundary=0015174be170ea43650499fa52d8 X-Virus-Checked: Checked by ClamAV on apache.org --0015174be170ea43650499fa52d8 Content-Type: text/plain; charset=ISO-8859-1 This is great, where is it available Stephen? On Fri, Jan 14, 2011 at 5:41 PM, Stephen Connolly < stephen.alan.connolly@gmail.com> wrote: > OK, > > I nearly have the Cassandra-Maven-Plugin ready. > > It has the following goals: > run: launches Cassandra in the foreground and blocks until you press > ^C at which point Maven terminates. Use-case: Running integration > tests from your IDE. Live development from your IDE. > > start: launches Cassandra in the background. Cassandra will be torn > down when Maven ends or if the stop goal is called. Use-case: Running > integration tests from Maven. Live development from your IDE with e.g. > jetty > > clean: Clears out the Cassandra database directory in > ${basedir}/target/cassandra. Use-case: Resetting the dataset. > > load: Runs the cassandra-cli with a file as input. Use-case: > Creating Keyspaces & pre-populating the dataset > > stop: Shuts down the background Cassandra instance started by start. > Use-case: Running integration tests from Maven. > > So for example, if you are developing a web application using Maven > you would use a command like: > > mvn cassandra:clean cassandra:start cassandra:load jetty:run > > which would start up cassandra with a clean dataset and then start up > jetty (which presumably connects via a client library to cassandra). > > Similarly, you can use cassandra-maven-plugin, jetty-maven-plugin, > maven-failsafe-plugin and selenium-maven-plugin to run web integration > tests as part of your build. > > So I have some questions: > > 1. Is there a standard file extension for the scripts that get passed > to cassandra-cli? > > 2. Is there any other obvious goal I have missed out on? > > There is a small bit of tidy-up left and then I just have to add some > integration tests and the site documentation. Once I have all that in > place I will raise a JIRA with the full source code against CASSANDRA > and hopefully a friendly committer will pick it up and commit it into > the tree. While waiting for a committer testers will be welcome. > > If it gets accepted I will then see about getting it released and > published on central. > > Expect to see the JIRA sometime Monday or Tuesday. > > -Stephen > --0015174be170ea43650499fa52d8--