canwe/gnizr
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
README.TXT
software version: ${version}
This is the README file of gnizr. For information on how to install
and use gnizr, go to http://code.google.com/p/gnizr/
This page describe the steps to build gnizr from SVN source code. Most users should download and install from gnizr binary releases.
If you have any questions, post them in Gnizr User Discussion.
Required Tools
Our build configuration requires the following tools already been installed:
Apache Maven 2 (we use 2.0.7)
Java SE Development Kit 6 (JDK 1.6)
Step 1: Download Source Code
Follow these instructions.
Source code options:
/trunk -- the latest under active development; may not build or may fail tests.
/branches -- release branches; software under "maintenance" mode; should build and pass tests.
/tags -- tagged Stable Releases and Development Releases; should build and pass tests.
Step 2: Prepare JUnit Test DB
Create a new MySQL database schema for testing. This schema should be created using the following configuration:
Database Name: gnizr_test
Database User: gnizr
Database Password: gnizr
NOTE: Make sure you grant gnizr user all proper MySQL DB privileges.
Run gnizr SQL script files:
Go to the SQL script directory
cd gnizr-db/src/main/resources/sql.
Run BASH script to setup database
chmod 755 loadsch.sh loadsp.sh
./loadsch.sh gnizr_test gnizr gnizr
Done!
Step 3: Compile Source Code
Assume that you've checked out the source code in a top-level directory called gnizr.
Go to the top-level directory
cd gnizr
Install the root project POM and update Maven plugins
mvn -U -N install
Compile gnizr modules, run JUnit tests and assemble the application
mvn clean install
mvn -Dmaven.test.skip=true package assembly:assembly
If you see no error messages, then the build is complete.
cd gnizr/target
In the target directory, you will find two different outputs of the same build: one in a uncompressed directory structure, and the other bundled in a ZIP file.