Skip to content

Development tips

For faster development, we recommend not deploying openkm_.war_ directly; instead, create in $TOMCAT_HOME/webapps a folder alias of target/openkm:

You can use a deployment script:

#!/bin/bash
#Cleans and re-compiles the source files
mvn -Dmaven.test.skip=true clean install $*
#Set the TARGET_DIRECTORY to the path of your tomcat installation
TARGET_DIRECTORY=~/Downloads/tomcat-10.1.25/
FILE_TO_MOVE=target/openkm.war
#This will only attempt to replace the existing WAR if the new WAR exists
if [ -f $FILE_TO_MOVE ]
then
echo 'Deploying WAR to Tomcat Directory'
cp -v $FILE_TO_MOVE $TARGET_DIRECTORY/webapps/.
echo 'Done'
fi