Maven usage: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cassandra-maven-plugin</artifactId> <version>2.0.0-1</version> <configuration> <startNativeTransport>true</startNativeTransport> <rpcPort>19160</rpcPort> <jmxPort>17199</jmxPort> <storagePort>17000</storagePort> <stopPort>18081</stopPort> <cqlVersion>3.0</cqlVersion> <nativeTransportPort>19042</nativeTransportPort>
</configuration> <executions> <execution> <id>id1</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> </goals> <configuration> <startNativeTransport>true</startNativeTransport> <rpcPort>19160</rpcPort> <jmxPort>17199</jmxPort> <storagePort>17000</storagePort> <stopPort>18081</stopPort> </configuration> </execution> <execution> <id>id2</id> <phase>pre-integration-test</phase> <goals> <goal>cql-exec</goal> </goals> <configuration> <startNativeTransport>true</startNativeTransport> <rpcPort>19160</rpcPort> <jmxPort>17199</jmxPort> <storagePort>17000</storagePort> <stopPort>18081</stopPort> <keyspace>KS1</keyspace> <cqlVersion>3.0</cqlVersion> <cqlScript> ${project.basedir}/src/test/resources/db/CREATETABLEWITHCOMPOSITEPRIMARYKEY.cql </cqlScript> </configuration> </execution> </executions> </plugin> CREATETABLEWITHCOMPOSITEPRIMARYKEY.cql contain CREATE TABLE table1 ( field1 text, field2 text , field3 text, PRIMARY KEY (field1, field2)); -Vipul On Wed, Apr 2, 2014 at 9:48 AM, Vipul Trial <vipultr...@gmail.com> wrote: > I am trying to execute CQL3 statements with Cassandra maven plugin. I have > added configuration (<cqlVersion>3.0</cqlVersion>) , but somehow it does > not let me execute CQL 3.0 statements. I am trying to create a column > family with composite keys, which are only supported in CQL 3.0. Any clue > what could be wrong? > -Vipul >