blob: 88d8bd36899e8039e577d26df964a740248031e3 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.taverna.language</groupId>
<artifactId>taverna-language</artifactId>
<version>0.15.0-incubating-SNAPSHOT</version>
</parent>
<artifactId>taverna-scufl2-wfdesc</artifactId>
<packaging>bundle</packaging>
<name>Apache Taverna Scufl 2 wfdesc export</name>
<description>Convert Scufl2 workflow to wfdesc structure (from Wf4Ever RO ontology)</description>
<properties>
<!-- ancient sesame that works with elmo. Only exists now
in repository.mygrid.org.uk as original maven repository
is offline. See <repositories> below -->
<sesame.version>2.2.4</sesame.version>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<target>
<property name="compile_classpath" refid="maven.compile.classpath" />
<property name="runtime_classpath" refid="maven.runtime.classpath" />
<property name="test_classpath" refid="maven.test.classpath" />
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<!-- inspired by http://openprovenance.org/java/maven-releases/org/openprovenance/opm-elmo/1.1.1/opm-elmo-1.1.1.pom -->
<mkdir dir="${project.build.directory}" />
<mkdir dir="${project.build.directory}/generated-sources" />
<mkdir dir="${project.build.directory}/generated-sources/elmo" />
<java classname="org.openrdf.elmo.codegen.OntologyConverter" fork="true" failonerror="true" maxmemory="128m">
<arg value="-b" />
<arg value="org.purl.wf4ever.wfdesc=http://purl.org/wf4ever/wfdesc#" />
<arg value="-b" />
<arg value="org.purl.wf4ever.wf4ever=http://purl.org/wf4ever/wf4ever#" />
<arg value="-b" />
<arg value="org.purl.wf4ever.wfprov=http://purl.org/wf4ever/wfprov#" />
<arg value="-b" />
<arg value="org.w3.prov=http://www.w3.org/ns/prov#" />
<arg value="-b" />
<arg value="org.purl.wf4ever.roterms=http://purl.org/wf4ever/roterms#" />
<arg value="-b" />
<arg value="org.w3.rdfs=http://www.w3.org/2000/01/rdf-schema#" />
<!-- <arg value="-p" /> <arg value="wfdesc" /> -->
<arg value="-j" />
<arg value="target/wfdesc-ontology.jar" />
<arg value="-p" />
<arg value="wf" /> <!-- Windows freaks out if this is really empty -->
<!-- <arg value="http://purl.org/wf4ever/wfdesc" /> -->
<arg value="src/main/resources/org/purl/wf4ever/wfdesc/wfdesc.ttl" />
<arg value="src/main/resources/org/purl/wf4ever/wfdesc/wf4ever.ttl" />
<arg value="src/main/resources/com/xmlns/foaf/foaf.rdf" />
<arg value="src/main/resources/org/w3/prov-o.ttl" />
<!--
-->
<arg value="src/main/resources/org/purl/wf4ever/wfdesc/roterms.ttl" />
<classpath refid="maven.plugin.classpath" />
<classpath>
<pathelement path="." />
</classpath>
project.name
</java>
<unzip src="${project.build.directory}/wfdesc-ontology.jar" dest="${project.build.directory}/generated-sources/elmo">
<patternset>
<exclude name="**/*.class" />
</patternset>
</unzip>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.openrdf.elmo</groupId>
<artifactId>elmo-codegen</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.2</version> <!-- note old version required for elmo! -->
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
<goal>add-resource</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/elmo/</source>
</sources>
<resources>
<resource>
<directory>${project.build.directory}/generated-sources/elmo/META-INF</directory>
<targetPath>META-INF</targetPath>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>assemble</id>
<phase>package</phase>
<goals>
<goal>assemble</goal>
</goals>
</execution>
</executions>
<configuration>
<assembleDirectory>${project.build.directory}/${project.artifactId}</assembleDirectory>
<programs>
<program>
<mainClass>org.apache.taverna.scufl2.wfdesc.ConvertToWfdesc</mainClass>
<name>Apache Taverna scufl2-to-wfdesc</name>
</program>
</programs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<!--<version>2.0</version> does not work with Maven 2 :( -->
<version>1.7.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>standalone</shadedClassifierName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.apache.taverna.scufl2.wfdesc.ConvertToWfdesc</mainClass>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.XmlAppendingTransformer">
<resource>META-INF/spring</resource>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse
m2e settings only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<versionRange>[1.6,)</versionRange>
<goals>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>false</runOnIncremental>
</execute>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<versionRange>[1.5,)</versionRange>
<goals>
<goal>add-source</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>taverna-scufl2-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>taverna-scufl2-t2flow</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>taverna-scufl2-scufl</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>taverna-scufl2-api</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.4</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>org.openrdf.elmo</groupId>
<artifactId>elmo-api</artifactId>
<version>${elmo.version}</version>
</dependency>
<dependency>
<groupId>org.openrdf.elmo</groupId>
<artifactId>elmo-sesame</artifactId>
<version>${elmo.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>jcl104-over-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.4.3</version>
</dependency>
<dependency>
<groupId>org.openrdf.elmo</groupId>
<artifactId>elmo-dynabean</artifactId>
<version>${elmo.version}</version>
</dependency>
<dependency>
<groupId>org.openrdf.sesame</groupId>
<artifactId>sesame-repository-sail</artifactId>
<version>${sesame.version}</version>
</dependency>
<dependency>
<groupId>org.openrdf.sesame</groupId>
<artifactId>sesame-sail-memory</artifactId>
<version>${sesame.version}</version>
</dependency>
<dependency>
<groupId>org.openrdf.elmo</groupId>
<artifactId>elmo-codegen</artifactId>
<version>${elmo.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.3</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.11</version>
<scope>compile</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>aduna-opensource.releases</id>
<name>Apache Taverna Half-a-mirror of http://repo.aduna-software.org/maven2/releases/</name>
<url>http://repository.mygrid.org.uk/artifactory/aduna/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>aduna-opensource.releases</id>
<name>Apache Taverna Half-a-mirror of http://repo.aduna-software.org/maven2/releases/</name>
<url>http://repository.mygrid.org.uk/artifactory/aduna/</url>
</pluginRepository>
</pluginRepositories>
</project>