Hi Felipe, CCing user@mojo as that is the list where questions on this maven plugin belong ;-)
The load script is only run when the database is created. I am going to take a wild guess that you were testing the plugin before you created the load script, in which case until you do an "mvn clean" the database from previous times will be reused, and hence the load script will not be executed. Please try running "mvn clean" and then running your build. Note that you don't need to run "mvn clean" before every build, just before builds when the load script has been modified (or when you want a clean build ;-) ) -Stephen On 8 November 2011 09:01, Felipe Sere <[email protected]> wrote: > Hi Stephen, > I am developing a local application with Cassandra in maven and I am using > your maven plugin to run integration tests. > Now, I am having some trouble creating the necessary Keyspace and > ColumnFamily with the plugin. > Here is a part of my pom.xml: > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>cassandra-maven-plugin</artifactId> > <version>1.0.0-1</version> > <executions> > <execution> > <goals> > <goal>start</goal> > <goal>stop</goal> > </goals> > </execution> > </executions> > </plugin> > And I have created the following file > > /home/felipe/projects/SessionStore/SessionRest/src/main/webapp/WEB-INF/cassandra/cli/load.script > > where I create the Keyspace and ColumnFamily. > Which part of the puzzle am I missing, as I still get a "Keyspace1 does not > exist" error in hector... > -- > Cheers, > Felipe > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
