Taverna command line tool

Taverna Command Line product build and installers

Released by myGrid

(c) Copyright 2005-2014 University of Manchester, UK


This repository is a Maven source code trees that do not themselves contain any code, but which are used to assemble the distribution, add launchers and configurations files, and package this as installers.

You can think of a product as the last build step before having a downloadable/executable software distribution. Each product includes their required code from the common Taverna source code, by retrieved the compiled JARs from the myGrid Maven repositories unless they have already been built locally with Maven.

This is the build product for the standalone Taverna Command Line tool.

In most cases you do not need to compile Taverna, instead you can download the official distribution for your operating system from the Taverna download pages.

For usage of this product, see the Command Line Tool documentation.


This repository have several “edition” branches, one for each domain-specific builds. Each domain-specific build extends the core branch by modifying the plugin set (and ensuring the repository folder is populated for those plugins), but may also modify configurations such as the default service sets.


  • core - for any domain - general activities (WSDL, REST, Beanshell, Component, Interaction, etc) - also basis for the other branches (can be considered the ‘master’ or ‘trunk’ branch)
  • bioinformatics - formerly maintenance, adds BioMart, BioMoby, Soaplab, corresponding default services and BioCatalogue
  • digitalpreservation - core + WebDAV
  • biodiversity - core + WebDAV + BioDiversityCatalogue
  • astronomy - core + AstroTaverna
  • enterprise - core with all possible plugins

To check which edition you are building, verify these bits of pom.xml:

<name>Taverna command line utility [${edition}]</name>

For more information, see http://dev.mygrid.org.uk/wiki/display/developer/Taverna+products

Creating a new edition

To create a new edition, make a new branch based on core and modify the above line(s). You would then typically also modify src/main/resources/plugins/plugins.txt and add the <dependency> sections from the new plugin(s) to the pom.xml so that the new plugin is added to the generated repository/ folder.

Note: You MUST use <scope>test</scope> in pom.xml for the added <dependency> blocks to avoid adding them to the lib/ folder, which would bypass the plugin-system and potentially cause conflicts with other parts of Taverna.

To verify the build, run executeworkflow.sh. A new user home directory for your edition should be created, e.g. ~/.taverna-commandline-astronomy-2.5-snapshot/ for the astronomy edition.

Often when adding plugins, Maven will not download all the same versions required at runtime by Taverna's plugin system Raven. The first execution of executeworkflow.sh will download these to the repository folder of the edition-specific user home directory.

To avoid this download phase for other users and permanently add these “missing” pieces, try:

stain@biggie:~$ cd .taverna-commandline-astronomy-2.5-snapshot/repository/
stain@biggie:~/.taverna-commandline-astronomy-2.5-snapshot/repository$ find . -type f > ~/files
stain@biggie:~/.taverna-commandline-astronomy-2.5-snapshot/repository$ cat ~/files

There is a Python script that will read files from the current directory and show the XML that needs to be added to pom.xml:

stain@biggie:~$ python src/taverna-commandline-product/src/main/python/generateArtifactItems.py 

Now copy and paste to add those artifactItem blocks within the beginng (or end) of the <artifactIems> block in pom.xml.

To verify, now the repository folder should be empty:

mvn clean package
rm -rf ~/.taverna-commandline-astronomy-2.5-snapshot
cd target
unzip *.zip
sh executeworkflow.sh
find ~/.taverna-commandline-astronomy-2.5-snapshot/repository


Taverna is licenced under the GNU Lesser General Public Licence. (LGPL) 2.1. See the file LICENSE.txt or http://www.gnu.org/licenses/lgpl-2.1.html for details.

If the source code was not included in this download, you can download it from http://www.taverna.org.uk/download/workbench/2-5/#download-source or http://www.taverna.org.uk/download/source-code/

If you installed a OS-specific distribution of Taverna it may come bundled with a distribution of OpenJDK. OpenJDK is distributed under the GNU Public License (GPL) 2.0 w/Classpath exception. See jre/LICENSE.txt or http://hg.openjdk.java.net/jdk7u/jdk7u/raw-file/da55264ff2fb/LICENSE for details.

Taverna uses various third-party libraries that are included under compatible open source licences such as the Apache Licence.


First, make sure you have checked out the edition you want to build.

Build requirements:

The below will assume you want to build the core edition.

git fetch --all          # fetch all branches/editions
git checkout core        # replace 'core' with your edition
mvn clean package

The packaging will take several minutes. The first time, this might take up to an hour as several libraries are downloaded from Maven repositories.

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:39.145s
[INFO] Finished at: Thu Feb 27 01:06:08 GMT 2014
[INFO] Final Memory: 47M/1200M
[INFO] ------------------------------------------------------------------------

After a successful build, the file target/taverna-commandline-core-2.5-SNAPSHOT.zip (or equivalent) contains the platform-independent distribution of the Taverna Command Line Tool.


If you would like to build the platform-specific installers, you will need an installation of Install4j.

First configure Maven to find your Install4j installation.

stain@biggie:~$ cat .m2/settings.xml 

Start install4j to install your license key or run a 30-day trial, then quit the user interface.

To generate the installers, run:

mvn clean package -Pdist

This process can take anything from 2 minutes to 30 minutes depending on your hardware. You can speed up the process by adding install4j-maven-plugin parameters, for instance generating only the Windows 64-bit installer with -Dinstall4j.buildIds=winx64. The buildIds are:

  • winx64 (Windows .exe 64-bit)
  • wini386 (Windows .exe 32-bit)
  • osx (Mac OS X)
  • linux_amd64 (Debian .deb x64)
  • linux_x86_64 (Redhat .rpm x64)
  • standalone (Windows .zip)
  • unix.tar (Unix .tar.gz)

Note that on first execution, this will also download OpenJDK binaries for embedding in OS-specifc installers. OpenJDK is licensed as GPL 2.1 with Classpath exception.

The media/media folder will contain installers for different operating systems.

stain@biggie:~/src/net.sf.taverna.t2.taverna-commandline$ ls target/media/

For more information on Taverna installers, see http://dev.mygrid.org.uk/wiki/display/developer/Taverna+installers


See http://www.taverna.org.uk/about/contact-us/ for contact details.

You may email support@mygrid.org.uk for any questions on using Taverna workbench. myGrid's support team should respond to your query within a week.