Building Cayenne has been edited by Andrus Adamchik (Dec 18, 2006).

(View changes)

Content:

Current Version

Prepare

  • Download Maven2.
  • Check out the repository trunk (or another appropriate location). E.g.:
    svn co https://svn.apache.org/repos/asf/incubator/cayenne/main/trunk/ cayenne


Build all modules

cd cayenne && mvn install
Workaround for Windows Build Failure
Full tree build may fail on Windows if the Maven2 repository directory contains spaces, which it does by default ("C:\Documents and Settings\user\.m2"). The workaround is described in the following paragraph.

A build error occurs in "jpa-chapter2" integration test module, mentioning "C:\Documents". This is a bug in Maven. Until it is fixed, the workaround is to relocate a repository to a directory with no spaces, e.g. "C:\.m2". This can be done by entering the new location in the settings.xml itself located in the default directory:

C:\Documents and Settings\user\.m2\settings.xml
<settings>
   <localRepository>c:\.m2</localRepository>
</settings>

Build assemblies

TODO

Refresh Documentation from Wiki

To rebuild the docs from Confluence Wiki, a build must be done with "doc" profile activated:

# cd cayenne/assembly 
# mvn -P doc package -Dconfluence.user=username -Dconfluence.password=password
# svn ci -m "docs updated"

Old Versions (1.2 and 2.0)

This applies to versions 1.2 and 2.0 that are built with Ant.
To build Cayenne with Ant, check out the appropriate source code branch from Subversion and perform the following command to see available targets:

# cd cayenne/cayenne-ant
# ant help

Required ant version - 1.6.* or newer; required JDK version - 1.5.* or newer. Note that compiled binaries are JDK 1.4 compatible, still JDK 1.5 is needed to build a few extensions.

Reply via email to