JVB build instructions

Hi,
What are the current instructions for building JVB, i.e. how should the ant file be invoked to correctly build the binary bundle?
Thanks,
Ben

ant -lib ~/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3 deb

Hi, you should use maven instead of ant directly:

mvn install -Dassembly.skipAssembly

Thanks @Boris_Grozev. Could you explain the function of the build.xml wrt the mvn install?

@damencho @Boris_Grozev Actually, we want to build JVB but also include the necessary dependencies that we’re using in the lib folder, just like the assembly zip.
What’s the correct way for that?
We’ve been using mvn package -Dassembly.skipAssembly=false, but I wonder if it’s correct.
How are the debian packages created?

When I use ant I get

ant -lib ~/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3 deb
Buildfile: /Users/ben/jitsi-videobridge/build.xml

BUILD FAILED
/Users/ben/jitsi-videobridge/build.xml:53: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -/usr/local/Cellar/ant/1.10.7/libexec/lib
        -/Users/ben/.ant/lib
        -a directory added on the command line with the -lib argument


Total time: 0 seconds

Did you install that maven artefact? As written here: https://github.com/jitsi/jitsi-videobridge/blob/master/build.xml#L12

Debian package uses also maven dependencies, but uses them through ant and does not produce a fat jar. So directly doing the maven thing should be fine.

@damencho That worked. Thanks to both of you for your help!

@damencho @bbaldino Are these instructions ^ still correct after the recent maven assembly changes in JVB? (Are these ready yet?)

Latest master is no longer using ant, but just maven. To build the debian package you need:

cd jitsi-videobridge
export DEBFULLNAME="Your Name"
export DEBEMAIL="youremail@example.org"
resources/build_deb_package.sh