-
Notifications
You must be signed in to change notification settings - Fork 11
Installation
There is dockerized version of the installation at https://github.com/icaruseu/momca-docker. Please check first, if this fits to your use case.
Older versions worked with Java version 6 only. We upgraded to eXist 4 - und did not update the following description completly, as for the docker version above.
Set the JAVA_HOME environment variable, e.g. on Ubuntu mostly with:
export JAVA_HOME="/usr/lib/jvm/default-java"
Install git and ant on your machine:
sudo apt-get install ant
sudo apt-get install git
On a production server, open a suoder terminal (assuming that the name of the sudoer is 'exist'), e.g. with:
sudo -u exist -i
The system has never been installed on a Windows machine, so do not expect the following to work! But would be glad to hear if you were able to run it!
-
Download and install GitHub for Windows.
-
Download and install Java JDK 6 for Windows.
-
Download and install Ant for Windows. The WinAnt installer will ask you for a Java JDK. Specify the path where you have installed the Java JDK 6 in step 2, e.g., C:\glassfish3\jdk.
Checkout the actual source code from the git repository into a directory called mom.XRX with the following command:
git clone https://github.com/icaruseu/mom-ca.git mom.XRX
Move into the created directory mom.XRX. Here you can find a configuration file called build.properties.xml for server and project configuration.
<?xml version="1.0" encoding="UTF-8"?>
<!-- @author: Jochen Graf -->
<XRX>
<!-- ########## XRX Project Settings ########## -->
<project-name>mom</project-name>
<deploy>core/**,mom/**</deploy>
<password>admin</password>
<!-- ########## OS Settings ########## -->
<os>
<windows>
<bitness>64</bitness>
<serviceName>mom.XRX-1</serviceName>
</windows>
</os>
<!-- ########## Java Settings ########## -->
<java>
<initmemory>256</initmemory>
<maxmemory>512</maxmemory>
</java>
<!-- ########## eXist Settings ########## -->
<exist>
<cache-size>64</cache-size>
<collection-cache>64</collection-cache>
<lucene-buffer>64</lucene-buffer>
<backup-cron-trigger>0 0 4 * * ?</backup-cron-trigger>
<revision></revision>
</exist>
<!-- ########## Jetty Settings ########## -->
<jetty>
<port>8181</port>
<port-ssl>8444</port-ssl>
<servername>localhost</servername>
</jetty>
</XRX>
For more information see the MOM-CA configuration guide.
Install the XRX environment by calling the following ant task:
ant install
Start the server with:
ant start
Restart the server with:
ant restart
Stop the server with:
ant stop
ant init-user
ant deploy-exist-xconf
Use exide to reindex the DB:
xmldb:reindex("/db")
After starting the server, the MOM-CA homepage is reachable under http://localhost:8181 (assuming that you configured port 8181 in build.properties.xml and installed the platform on a localhost).
The eXist administration tools are available under http://localhost:8181/apps/dashboard/.