Build all Graffito subprojects

Requirements

It is expected that the user is familiar with both the Apache Maven project tool and the Apache Ant build tool.

  • Ant 1.5 or higher
  • Maven 1.0 or higher. Maven 2.x is not yet supported.
  • Java 1.4.2_02 or higher

1. Get Maven Ready

If you have not already done so, download and install Maven.

2. Get the souce

The Graffito source code is available via Subversion at http://svn.apache.org/repos/asf/incubator/graffito/trunk (anonymous access) or with viewcvs.

3. Create an empty DB

Create an empty schema in your favorite DB system. Currently, we are supporting MySql, Oracle, MsSql, Hsql and Postgres.

Get more information the supported databases on this page.

If you are using HSQL, you can start a empty test db with the maven goal maven start.test.server (from the svn trunk folder).

4. Build Properties

Please set these values in your ${USER_HOME}/build.properties file. There is a sample file here.

PropertyExampleWhat is it?
UNIT TEST SETTING
org.apache.portals.graffito.test.database.default.namemysql | oracle | mssql | hsql | postgresDatabase type used for the Graffito Master Store in the test environment
org.apache.portals.graffito.test.jetspeedtrue | falseTrue if the Db is already used by a Jetspeed application. By this way, it is not necessary to create or drop the tables used by OJB or by the security service
org.apache.portals.graffito.test.database.urljdbc:mysql://127.0.0.1/graffitotest?dumpQueriesOnException=trueUrl used to connect to the Graffito Master Store in the test environment
org.apache.portals.graffito.test.database.drivercom.mysql.jdbc.DriverJDBC Driver class name
org.apache.portals.graffito.test.database.useryour-db-userUser name used to connect to the Test DB
org.apache.portals.graffito.test.database.passwordyour-db-user-passwordUser password used to connect to the Test DB
org.apache.portals.graffito.test.jdbc.drivers.pathC:/myjarpath/mysql/mysql-connector-java-3.1.4-beta-bin.jarJDBC driver files used for the test DB
PRODUCTION SETTING
org.apache.portals.graffito.production.database.default.namemysql | oracle | mssql | hsql | postgresDatabase type used for the Graffito Master Store in the production environment
org.apache.portals.graffito.production.jetspeedtrue | falseTrue if the Db is already used by a Jetspeed application. By this way, it is not necessary to create or drop the tables used by OJB or by the security service
org.apache.portals.graffito.production.database.urljdbc:mysql://127.0.0.1/graffitotest?dumpQueriesOnException=trueUrl used to connect to the Graffito Master Store in the production environment
org.apache.portals.graffito.production.database.drivercom.mysql.jdbc.DriverJDBC Driver class name
org.apache.portals.graffito.production.database.useryour-db-userUser name used to connect to the production DB
org.apache.portals.graffito.production.database.passwordyour-db-user-passwordUser password used to connect to the production DB
org.apache.portals.graffito.production.jdbc.drivers.pathC:/myjarpath/mysql/mysql-connector-java-3.1.4-beta-bin.jarJDBC driver files used for the production DB

5. Building Graffito

  • Check if your DB is correctly running.
  • Execute maven allClean allBuild on the Graffito root directory (trunk folder).