Building Cayenne has been edited by Andrus Adamchik (Jan 02, 2007).

(View changes)

Content:

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 "wiki-docs" profile activated:

# cd cayenne/doc 
# mvn -P wiki-docs clean install -Dconfluence.userName=username -Dconfluence.password=password
# svn ci -m "docs updated"

Reply via email to