Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current  |   View Page History

Basic Build Instructions

  1. Take some prop files from tomcat's conf directory of the server and copy them locally.
    These files are usually setup to work with local resources, but we want the global version to go into the build
    prop file server dir svn dir local dir JAR
    owlim.properties nuxeo-tomcat\conf https://svn.ontotext.com/svnresearchspace/trunk/entity-api/src/resources/conf entity-api\src\main\resources\conf entity-api
    bm.properties nuxeo-tomcat\conf https://svn.ontotext.com/svnresearchspace/trunk/nuxeo-research-space/src/main/resources/conf nuxeo-research-space\src\main\resources\conf nuxeo-research-space
  2. Build the system locally
    • this puts the property files in the appropriate JARs listed above
    • Jana builds using Maven from IntelliJ IDEA, but you can also invoke Maven from the command line
    • For entity-api use "mvn package -DskipTest" if you have problems with the OWLIM License when executing the tests
  3. Build process using Maven* for 'entity-api' :  mvn deploy -DskipTests -Dowlim-license=resources/OWLIM_SE.license
  • for 'nuxeo-research-space' : mvn deploy
  • for other 'research-space-image-editor','research-space-migration','research-space-rforms','research-space-rtf' :  mvn install# Copy the JARs from the build to /nidata/nuxeo/www.nuxeo.com.nuxeo-55/nuxeo-cap-5.5-tomcat/nxserver/plugins
    These are Nuxeo plugins, therefore JAR not WAR:
    Unable to render embedded object: File (jars.PNG) not found.
  1. Restart Nuxeo
    • The last line is to monitor the nuxeo server log

Reload/Redeploy Repository

  • after the repository is generated it should be copied to its new http location. The generated repository is in entity-api/resources/storage.zip. The HTTP location is /nidata/tomcat/webapps/ROOT/, so that it can be access outside as http://researchspace.ontotext.com/storage.zip
  • currently we deploy on two locations - "bm-new-fr" and "susana.new"
  • to deploy on a single location:
    • stop tomcat: /nidata/tomcat/bin/catalina.sh stop
    • go there (the repository root is in /nidata/repositories), e.g. "cd /nidata/repositories/susana.new",
    • unzip storage.zip there (unzip /nidata/tomcat/webapps/ROOT/storage.zip)
    • move the storage folder as top ("mv resources/susana/storage .")
    • start tomcat: /nidata/tomcat/bin/catalina.sh start

Periodic Repo Reload

The repo is reloaded periodically using an automated process, see [Repository Creation Script]:

  • After enough RDF/Turtle files are added/changed, OR
  • After OWLIM Rules are changed (see FR Implementation)

Repo Redeploy

Periodically (how often?) the complete set of repositories is captured to http://researchspace.ontotext.com/storage.zip.
If you need (when would you need?) the complete set of repos can be redeployed as follows:

  • stop OWLIM?
  • unzip to where?
  • start OWLIM?
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.