maven - Can not build cassandra database stress client by DataStax -


im working own database cluster cassandra. want try stress tests database, thats why downloaded datastax java-driver cassandra.

https://github.com/datastax/java-driver

after downloaded it, got know, need maven install it. downloaded maven here , added necessary paths environment.

http://maven.apache.org/download.cgi

using windows command line went java-driver directory , called

mvn install 

the build successfull , afterwards tried execute stress jar file in driver-examples/stress/target using command line with

 java -jar thejarfile.jar 

i got error:

failed load main-class manifest attribute cassandra-driver-examples-stress-1.0.1-snapshot.jar

how can run program?

background: worked first time maven in this.

thank you.

better idea create maven build project, import dependency, configure cluster details in project , run whatever test want.

else can check try considering fact artifactid maven-assembly-plugin not done

  • open stress pom file

  • edit file

    <build>   <plugins>       <plugin>       <groupid>org.apache.maven.plugins</groupid>       <artifactid>maven-jar-plugin</artifactid>         <!--  <artifactid>maven-assembly-plugin</artifactid>-->           <configuration>               .               .               .           </configuration>       </plugin>   </plugins> 

  • mvn clean install -e

  • java -jar target/cassandra-driver-examples-stress-1.0.1-snapshot.jar


Comments