This project uses Maven as project manager and build tool. You only need to
maven scm:checkout-project -Dmaven.scm.method=cvs -Dmaven.scm.cvs.module=. -Dmaven.scm.cvs.root=:pserver:anonymous@cvs.sourceforge.net:/cvsroot/oness -Dmaven.scm.checkout.dir=oness
maven plugin:download -DgroupId=maven -DartifactId=maven-war-plugin -Dversion=1.7-SNAPSHOT -Dmaven.repo.remote=http://cvs.apache.org/repository
maven plugin:download -DgroupId=maven -DartifactId=maven-war-plugin -Dversion=1.7-SNAPSHOT -Dmaven.repo.remote=http://cvs.apache.org/repository
maven java:compile
The default database connection configuration for testing is in oness-common-model module, in the file src/conf/dataSource.properties, that should be ok if you have a default installation of MySQL.
If you want to change the database, user or password you can add some of the following properties to your $HOME/build.properties that will override the default ones (you only need those that change):
maven.junit.sysproperties=dataSource.password \ dataSource.username \ dataSource.url \ dataSource.driverClassName \ hibernate.dialect # If you want to use mysql dataSource.username= dataSource.password= dataSource.url=jdbc:mysql:test dataSource.driverClassName=com.mysql.Driver hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect
# If you want to use postgres dataSource.username=yourpostgresusername dataSource.password= dataSource.url=jdbc:postgresql:yourdatabasename dataSource.driverClassName=org.postgresql.Driver hibernate.dialect=net.sf.hibernate.dialect.PostgreSQLDialect
You can find here documentation about MySQL urls.
If you are using another database server please tell me.
If you want to use eclipse you will need to install some jars in your local maven repository, if you don't want to modify the eclipse project files. To do so you must call maven jar:install-snapshot
in the modules you need or maven multiproject:install-snapshot
in the doc module to build all.