I suggest moving this discussion to the taverna-hackers list, as this has to do about Taverna's APIs and code. See http://lists.sourceforge.net/lists/listinfo/taverna-hackers if you are not subscribed.
2010/2/26 Raphaël Flores <[email protected]>: > In my project, I'd would like to use Taverna 1.7.2.1 as a jar dependency and > launching workflows directly via Bootstrap class. In order to use it, I have > to add a Taverna dependency into my pom.xml for Taverna beeing downloaded > automatically at compilation step. However, I don't have been able to find > correctly dependency to manage that. Here is the dependency I've added to my it's unfortunately not as straight forward as there is no 'one' Taverna JAR or Maven artifact, but one per module in the workbench. This applies both to Taverna 1.7 and 2.1. What kind of workflows do you want to launch? If they contain several different services (like WSDL, BioMoby, Soaplab) you will need to run it using our plugin system Raven, otherwise you will run into classloader issues with conflicting versions of libraries like Axis and XML parsers. If you only run certain type of services, you might get it to work by depending on those modules, for example the taverna-wsdl-processor. Interfacing code through Raven is non-trivial as you would not be able to import any classes that are loaded through Raven. In Taverna 1, it is only Bootstrap that lives outside Raven, meaning that all you can do is launch a main method and wait for it to finish. You will need to have a folder structure that mimics the Taverna 1 installation for Bootstrap to find the required libraries. You can however create your own Maven module (with dependencies) with a main method that you tell Bootstrap to launch instead. This is what the Taverna 1 command line tool executeworkflow.sh does. Also see http://www.mygrid.org.uk/usermanual1.7/executeworkflowprogram.html (and the next pages) which will show you how to do this. > But the artifact has not been found at mygrid-repository > (http://www.mygrid.org.uk/maven/repository), probably because of the > artifact id packaging is pom. I expected adding this dependency would get > all Taverna dependencies, but it seems not. So I may add each dependency of > Taverna (taverna-bootstrap, scufl, workbench, etc...) for not having > problems at compilation time, but at runtime, I get errors because of > dynamic dependencies. > > Is there a way to add only one dependency for Taverna in my pom.xml which > would let Taverna pom getting all needed artifacts ? I might not use the > dependency correctly... > > Otherwise, does one know what artifacts other than bootstrap, workbench, > tools and scufl are needed for executing workflow from Bootstrap ? > > Thanks for your help. > > -- > Raphaël Flores > Téléphone : 01 69 33 23 76 > UMR de Génétique Végétale, INRA, Univ. Paris-Sud, > CNRS, AgroParisTech, F-91190 Gif-sur-Yvette, France > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > taverna-users mailing list > [email protected] > [email protected] > Web site: http://www.taverna.org.uk > Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/ > > -- Stian Soiland-Reyes, myGrid team School of Computer Science The University of Manchester ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ taverna-hackers mailing list [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/ Developers Guide: http://www.mygrid.org.uk/tools/developer-information
