Development tips

Tomcat application deployment

For faster development we recommend not deploying openkm.war directly, file and create in $TOMCAT_HOME/webapps a folder alias of target/openkm:

To create symbolic links in Windows use "juntion.exe" application.

More information at http://technet.microsoft.com/en-us/sysinternals/bb896768.

Deployingscriptsample">Deploying script sample

You can use a deploying script:

#!/bin/bash
# @author: Kenneth Walter
 
#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-9.0.76/
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