Correct /opt/taverna-commandline-core folder for RPM
1 file changed
tree: 4038324678d981a5ce4c72ca12b213647ee365af
  1. src/
  2. .gitignore
  3. CITATION.txt
  4. LICENSE.txt
  5. pom.xml
  6. README.md
README.md

Taverna command line tool

Taverna Command Line product build and installers

Released by myGrid

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

Introduction

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.

Editions

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.

Branches:

  • 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:

    <artifactId>taverna-commandline-${edition}</artifactId>
<name>Taverna command line utility [${edition}]</name>
<properties>
	<edition>core</edition>

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
./org/slf4j/slf4j-parent/1.6.1/slf4j-parent-1.6.1.pom
./org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar
./org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.pom

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 
                            <artifactItem>
                                <groupId>org.slf4j</groupId>
                                <artifactId>slf4j-parent</artifactId>
                                <version>1.6.1</version>
                                <type>pom</type>
                                <outputDirectory>${project.build.directory}/repository/org/slf4j/slf4j-parent/1.6.1</outputDirectory>
                            </artifactItem>
                            <artifactItem>
                                <groupId>org.slf4j</groupId>
                                <artifactId>slf4j-api</artifactId>
                                <version>1.6.1</version>
                                <type>jar</type>
                                <outputDirectory>${project.build.directory}/repository/org/slf4j/slf4j-api/1.6.1</outputDirectory>
                            </artifactItem>
                            <artifactItem>
                                <groupId>org.slf4j</groupId>
                                <artifactId>slf4j-api</artifactId>
                                <version>1.6.1</version>
                                <type>pom</type>
                                <outputDirectory>${project.build.directory}/repository/org/slf4j/slf4j-api/1.6.1</outputDirectory>
                            </artifactItem>

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
cd *SNAPSHOT
sh executeworkflow.sh
find ~/.taverna-commandline-astronomy-2.5-snapshot/repository

Licence

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.

Building

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] BUILD SUCCESS
[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.

Installers

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 
<settings>
  	<profiles>
  	    <profile>
  		<id>dist</id>
    		<properties>
    		    <install4j.home>/opt/install4j5</install4j.home>
		    </properties>
        </profile>
    </profiles>
  </settings>

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/
md5sums
output.txt
taverna-commandline-core-2.5-SNAPSHOT-linux_amd64.deb
taverna-commandline-core-2.5-SNAPSHOT-linux_x86_64.rpm
taverna-commandline-core-2.5-SNAPSHOT-macos.tgz
taverna-commandline-core-2.5-SNAPSHOT-unix.tar.gz
taverna-commandline-core-2.5-SNAPSHOT-windows-x64.exe
taverna-commandline-core-2.5-SNAPSHOT-windows-x86.exe
taverna-commandline-core-2.5-SNAPSHOT.zip
updates.xml

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

Support

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.