The wiki's script is probably from 0.7.x

On 8 November 2011 10:34, Felipe Sere <felipes...@gmail.com> wrote:
> I found the error:
> the script was placed in the wrong folder :-)
>
> The script from your wiki site does not work though, I had to remove the
> replication_factor and column_type.
>
> thanks anyway!
>
> Cheers,
> Felipe
>
>
> On 11/08/2011 11:22 AM, Stephen Connolly wrote:
>>
>> 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<felipes...@gmail.com>  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


Reply via email to