This is a git repository template for working with and customizing VIVO. It uses the three tiered build approach documented by the VIVO project. The project source files (VIVO and Vitro) are tracked using Git Submodules.
For a more detailed explanation of setting up the VIVO environment, consult the installation instructions for v1.11.x. Some additional configuration options are explained in the System Administration section of the wiki.
VIVO uses Maven for its build tool. Follow the directions below for building your custom VIVO project with Maven.
-
Clone this template
git clone https://github.com/lawlesst/vivo-project-template.git vivo cd vivo git submodule init
-
Pull in VIVO and Vitro. This will take a few minutes.
git submodule update
-
Check out specific versions of VIVO and Vitro by branch or tag name
cd VIVO git checkout vivo-1.11.0 cd ../Vitro git checkout vitro-1.11.0
-
Change back to vivo main directory
cd ../VIVO
-
Copy default-settings.xml
cp custom-vivo/default-settings.xml custom-vivo/custom-settings.xml
-
Using a text editor, change the settings for the VIVO home directory, Tomcat location, and theme to match your environment.
-
Build and deploy
mvn install -s custom-vivo/custom-settings.xml
If you are installing VIVO v1.9.x or 1.10.x, you are finished. For later versions, you must install and configure Solr. See the v1.11 installation instructions for additional details.
Prior to December 2015, VIVO used ant to build the project.
-
Clone this template and revert to an ant-compatible template using git checkout
git clone https://github.com/lawlesst/vivo-project-template.git vivo cd vivo git checkout 2e02f3cc10e7fc7583b3273b4128dcfe6d43fc10 git submodule init
-
Pull in VIVO and Vitro. This will take a few minutes.
git submodule update
-
Check out specific versions of VIVO and Vitro
cd VIVO git checkout maint-rel-1.8 cd ../Vitro git checkout maint-rel-1.8
-
Change back to vivo main directory
cd ..
-
Copy default build.properties, runtime.properties, and applicationSetup.n3
cp example.build.properties build.properties cp example.runtime.properties runtime.properties cp config/example.applicationSetup.n3 config/applicationSetup.n3
-
Adjust build, runtime, and applicationSetup properties
-
Create the vivo data directory specified in build.properties if it doesn't exist. Eg:
mkdir -p /usr/local/vivo/data/config cp runtime.properties /usr/local/vivo/data cp config/applicationSetup.n3 /usr/local/vivo/data/config
-
Build and deploy VIVO
ant all
- local changes are separated from core code making upgrades easier.
- using Git you can checkout any tagged release, build it with your local changes, and test it out.
- using the steps above, you can quickly deploy VIVO to another machine.
- you can use Git features, like cherry-pick, to select bug fixes or enhancements that are not yet in a VIVO release and incorporate them into your implementation.
- even if you plan on making few modifications, this can be a convenient and efficient way to manage your custom theme.
Open an issue via the issue tracker.