Maven 2.x Support
Prev | Chapter 6. Using Maven | Next

## Maven 2.x Support

Addendum: for a more recent guide please follow Tigase XMPP Server 5.2.0 and Later - Compilation and Generating Distribution Packages.

Thanks to bmalkow you can now build Tigase server from sources using Maven 2.x tool. This should greatly simplify first steps with Tigase code and it was requested by many of those trying to get the server running from sources. Maven repository with Tigase packages is located at address: maven.tigase.org. Now all you need to compile sources and generate packages needed to run the server is just a few simple steps below:

1. Download and install Maven 2.x
2. Checkout Tigase server sources from Subversion repository:

    svn co https://svn.tigase.org/reps/tigase-server/trunk/ tigase-server

1. Now go to directory with server code:

    cd tigase-server

1. And run maven command to generate server package:

    mvn assembly:assembly

1. After maven finished his work there should be new subdirectory created: target. Go to this directory now:

    cd target/

1. and list content of this directory. On Linux, Unix system:

    ls -l

+ On MS Windows system:

+

    dir

1. You should see at least 2 files like these:

       tigase-server-2.4.0-SNAPSHOT-prodenv.tar.gz
       tigase-server-2.4.0-SNAPSHOT-prodenv.zip

2. Unpack one of these files whichever you like:

       tar -xzvf tigase-server-2.4.0-SNAPSHOT-prodenv.tar.gz

   or

       unzip tigase-server-2.4.0-SNAPSHOT-prodenv.zip

3. New directory will be created in our case it will be: `tigase-server-2.4.0-SNAPSHOT/`. Now go to this directory:

       cd tigase-server-2.4.0-SNAPSHOT/

4. Now almost everything is ready to run the server. Almost because sometimes on Unix like (including Linux) operating systems you have to change script execution bit before you can run it:

       chmod u+x bin/*

5. Now you can run Tigase server:

       ./bin/tigase.sh run etc/tigase.conf

   You can get a few warnings about missing configuration file (which will be automatically created) and user repository file (which will be automatically created when you register first user).

For your convenience there are a few other startup files in `etc/` directory. You can look and modify them according to your needs.

Prev | Up | Next
A Very Short Maven Guide | Home | Chapter 7. Tests