|
HowToBuild
How to check out and build gnizr on your local machine
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 ToolsOur build configuration requires the following tools already been installed:
Step 1: Download Source CodeFollow these instructions. Source code options:
Step 2: Prepare JUnit Test DBCreate a new MySQL database schema for testing. This schema should be created using the following configuration:
NOTE: Make sure you grant gnizr user all proper MySQL DB privileges. Run gnizr SQL script files:
Step 3: Compile Source CodeAssume that you've checked out the source code in a top-level directory called gnizr.
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. |
Sign in to add a comment
In Step 3: Compile Source Code, if you encounter a JUnit test error for TestBookmarkDBDao2.java, there is a possibility that the file has a character encoding error on your machine.
You have two options:
Option 1:
Skip the JUNit test by using mvn -U -N -Dmaven.skip.test=true install
Option 2:
Fix the character encoding problem.
1) Open the TestBookmarkDBDao2.java file in Eclipse
2) In the "Package Explorer", right-click the file name => "properties"
3) In "Text file encoding" section, select "Other: UTF-8".
4) Save the file.
5) Re-run mvn -U -N install
Two comments: