Consejos de desarrollo
Despliegue de la aplicación en Tomcat
Sección titulada «Despliegue de la aplicación en Tomcat»Para un desarrollo más rápido, recomendamos no desplegar openkm_.war_ directamente; en su lugar, cree en $TOMCAT_HOME/webapps un alias de carpeta hacia target/openkm:

Ejemplo de script de despliegue
Sección titulada «Ejemplo de script de despliegue»Puede usar un script de despliegue:
#!/bin/bash
#Cleans and re-compiles the source filesmvn -Dmaven.test.skip=true clean install $*
#Set the TARGET_DIRECTORY to the path of your tomcat installationTARGET_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 existsif [ -f $FILE_TO_MOVE ]then echo 'Deploying WAR to Tomcat Directory' cp -v $FILE_TO_MOVE $TARGET_DIRECTORY/webapps/. echo 'Done'fi