Contents |
Drizzle-JDBC uses maven. You first need to ensure you have both java and maven installed on your server before you can build the driver.
So, the steps to build the driver are:
$ bzr branch lp:drizzle-jdbc $ cd drizzle-jdbc $ mvn compile ... wait for maven to download the internet ... ... wait for maven to compile the classes...
To get a .jar you simply do:
$ mvn package
and a binary will end up in the target directory.
Note You will need a drizzle server running on localhost and a schema called test_units_jdbc to be able to package the JDBC jar binary (tests need to be run successfully to build the package)
Note You will also need a mysql server running on localhost with a no-username-password user which has access to a test_units_jdbc database. The username/password can be changed, look in the constructor of src/test/java/org/drizzle/jdbc/MySQLDriverTest.java
To run the test suite, you need a running version of drizzled on localhost with a database called test_units_jdbc:
$ mvn test
Maven by default runs the tests when building the package. This may not be convenient in some cases, for example if you are doing quick build cycles or your drizzled is not set up. You can skip tests as follows:
$ mvn -Dmaven.test.skip=true package