How to build

The modules of the Duine Framework are provided as a binary distribution, so you don't need to build them yourself. This section is only relevant if you are interested in building the code from the sources.

The Duine recommender source code is available in the duine-recommender-*-source distribution.

We use Maven for the build (currently version 2.0.9). Downloading and installation of Maven is pretty simple, just follow their instructions. Detailed information about Maven is available in the online Maven book .

The build steps:

Unpack duine-recommender-*-source

Make the directory duine-recommender-*-source your current directory.

Run the command mvn package

This will build the entire project, and it will download all required dependencies from the global Maven repository.

Resolving build failures

Some 3d party libraries are not available in the central Maven repositories. In some cases this will cause a build failure. This issue is documented at the Maven website . The solution basically means that you have to download the jar yourself and install it in the local Maven repository manually. This workaround is described here .

For the JTA library (available at the Sun website ) the command is:

mvn install:install-file -Dfile=jta-1_0_1B-classes.zip -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar

The SUN JDBC standard extension binary is available at the Sun website . You should download the JDBC 2.0 Optional Package Binary. To install the file into your maven repository use the command below (first rename the jar):

mvn install:install-file -Dfile=jdbc-stdext-2.0.jar -DgroupId=javax.sql -DartifactId=jdbc-stdext -Dversion=2.0 -Dpackaging=jar

After resolving the issue run the command mvn package again.