app-package-img Building the UCC

Prerequisites

You need Java and Apache Maven. Check the versions given in the pom.xml file.

Building Java code

Clone the git repo and build the jars from the root dir:

$ git clone https://github.com/UNICORE-EU/commandline-client.git
$ cd commandline-client
$ mvn clean install -DskipTests

Creating distribution packages

The following commands create the distribution packages in tgz, deb and rpm formats. The versions are taken from the pom.xml.

tgz

$ cd distribution
$ mvn package -DskipTests -Ppackman -Dpackage.type=bin.tar.gz

deb

$ cd distribution
$ mvn package -DskipTests -Ppackman -Dpackage.type=deb -Ddistribution=Debian

rpm redhat

$ cd distribution
$ mvn package -DskipTests -Ppackman -Dpackage.type=rpm -Ddistribution=RedHat