How to build jitsi-videobridge from sources


I have debian virtual machine with

# uname -a
Linux b0bf1408e95f 5.4.39-linuxkit #1 SMP Fri May 8 23:03:06 UTC 2020 x86_64 GNU/Linux

# java --version
openjdk 2020-11-04
OpenJDK Runtime Environment (build
OpenJDK 64-Bit Server VM (build, mixed mode, sharing)

I checked out sources to /src/jitsi-videobridge

mvn -X compile  exec:exec -Dexec.executable=java -Dexec.args="-cp %classpath org.jitsi.videobridge.MainKt -Djava.library.path=$JVB_HOME/lib/native/linux-64 -Djava.util.logging.config.file=$JVB_HOME/lib/ "

as described here
and then I got the error

Error: Could not find or load main class org.jitsi.videobridge.MainKt
Caused by: java.lang.ClassNotFoundException: org.jitsi.videobridge.MainKt
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
    at org.apache.commons.exec.DefaultExecutor.executeInternal (
    at org.apache.commons.exec.DefaultExecutor.execute (
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (
    at org.codehaus.mojo.exec.ExecMojo.execute (
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (
    at (
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (
    at org.apache.maven.DefaultMaven.doExecute (
    at org.apache.maven.DefaultMaven.doExecute (
    at org.apache.maven.DefaultMaven.execute (
    at org.apache.maven.cli.MavenCli.execute (
    at org.apache.maven.cli.MavenCli.doMain (
    at org.apache.maven.cli.MavenCli.main (
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (
    at java.lang.reflect.Method.invoke (
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (

How to build jitsi-videobridge from sources properly?

‘properly’ I don’t know, but I had success just using mvn package. This needs access to internet.

mvn package will build the jar

err, yes. It was my understanding it’s a way to build jitsi-videobridge: I had just to copy the jar at the appropriate place and it worked - am I missing something ?

Yes, sorry, I wasn’t trying to disagree with you…just reinforcing that mvn package is correct and will build the jar.

I’m not familiar with java. I’m .NET, Go developer. How to run jvb from sources? Is it possible to run in Intellij Idea?

mvn package and men install are working, and I’ve got some artifacts in ~/.m2 folder. I went through all debian/* scripts and didn’t find the way how to launch jvb I’ve built?