Windows or OSX startup
Code Block |
---|
set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
or
export MAVEN_OPTS='-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n'
cd openmeetings-web
mvn install -P allModules,quick,mysql jetty:run-exploded -Dwicket.configuration=DEVELOPMENT
# build single module
mvn install -P allModules,quick,mysql -pl openmeetings-core
# update mvn version
mvn versions:set -DnewVersion=2.50.1
mvn versions:commit
# fix missing test jars
mvn -o install -P allModules,mysql -pl openmeetings-util
mvn -o install -P allModules,mysql -pl openmeetings-db,openmeetings-core |
Start Kurento being able to record locally
...
Code Block |
---|
// for example /home/$user/work/openmeetings
export OM_HOME=$YOUR_PATH
// for example export OM_HOME=/Users/wagns1/Documents/apache/openmeetings/_REPO/openmeetings/openmeetings-web/target/openmeetings-web-5.0.0-M5-SNAPSHOT
docker run -v $OM_HOME/data:$OM_HOME/data -p 8888:8888 kurento/kurento-media-server
or
docker run -v $OM_HOME/data:$OM_HOME/data -p 8888:8888 kurento/kurento-media-server-exp:bionic-gstreamer |
Start up debug session
...
Code Block |
---|
mvn clean install -P allModules,unpacked,mysql -Dwicket.configuration=DEVELOPMENT -DskipTests -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.javadoc.skip=true -Dmpir.skip=true |
Compile Javascript only
compiles JS files and CSS bundle only (requires v6.x.x and later)
Code Block |
---|
|
# Run NPM install on each of the packages (only required once unless you change dependency):
# mvn frontend:npm@main-install frontend:npm@chat-install frontend:npm@settings-install frontend:npm@room-install frontend:npm@wb-install
# Run NPM
mvn frontend:npm@main frontend:npm@chat frontend:npm@settings frontend:npm@room frontend:npm@wb
# Minify CSS
mvn minify:minify@theme-minify minify:minify@nettest-js
# Copy to destination, in this case running OpenMeetings using the embedded Jetty, see above
export CURRENT_DIR=$(pwd)
rsync -a $CURRENT_DIR/target/generated-sources/js/ $CURRENT_DIR/target/openmeetings-web-7.0.0-SNAPSHOT/WEB-INF/classes/
|
Make CXF-RS return no root element in JSON response
Required to make JSON return response.
Code Block |
---|
|
<bean class="org.apache.cxf.jaxrs.provider.json.JSONProvider">
<property name="dropRootElement" value="true" />
</bean |