<?xml version="1.0"?> | |
<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> | |
<groupId>org.purl.wf4ever</groupId> | |
<artifactId>scufl2-wfdesc</artifactId> | |
<version>0.2</version> | |
<name>SCUFL2 to wfdesc</name> | |
<description>Convert Scufl2 workflow to wfdesc structure (from Wf4Ever RO ontology)</description> | |
<properties> | |
<scufl2.version>0.10-SNAPSHOT</scufl2.version> | |
<elmo.version>1.5</elmo.version> | |
<sesame.version>2.3.2</sesame.version> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-source-plugin</artifactId> | |
<version>2.1.2</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>jar</goal> | |
<goal>test-jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.3.1</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>test-jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.7.1</version> | |
<configuration> | |
<skip>false</skip> | |
<systemProperties> | |
<property> | |
<name>java.awt.headless</name> | |
<value>true</value> | |
</property> | |
</systemProperties> | |
</configuration> | |
</plugin> | |
<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="-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" /> | |
<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.purl.wf4ever.wfdesc.scufl.ConvertToWfdesc</mainClass> | |
<name>scufl2-to-wfdesc</name> | |
</program> | |
</programs> | |
</configuration> | |
</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> | |
</pluginExecutions> | |
</lifecycleMappingMetadata> | |
</configuration> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>uk.org.taverna.scufl2</groupId> | |
<artifactId>scufl2-api</artifactId> | |
<version>${scufl2.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>uk.org.taverna.scufl2</groupId> | |
<artifactId>scufl2-t2flow</artifactId> | |
<version>${scufl2.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>uk.org.taverna.scufl2</groupId> | |
<artifactId>scufl2-scufl</artifactId> | |
<version>${scufl2.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>uk.org.taverna.scufl2</groupId> | |
<artifactId>scufl2-api</artifactId> | |
<version>${scufl2.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>Aduna Open Source - Maven releases</name> | |
<url>http://repo.aduna-software.org/maven2/releases</url> | |
</repository> | |
<repository> | |
<releases> | |
<enabled>false</enabled> | |
</releases> | |
<snapshots> | |
<enabled>true</enabled> | |
</snapshots> | |
<id>aduna-opensource.snapshots</id> | |
<name>Aduna Open Source - Maven snapshots</name> | |
<url>http://repo.aduna-software.org/maven2/snapshots</url> | |
</repository> | |
<repository> | |
<releases /> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> | |
<id>mygrid-repository</id> | |
<name>myGrid Repository</name> | |
<url>http://www.mygrid.org.uk/maven/repository</url> | |
</repository> | |
<repository> | |
<releases> | |
<enabled>false</enabled> | |
</releases> | |
<snapshots /> | |
<id>mygrid-snapshot-repository</id> | |
<name>myGrid Snapshot Repository</name> | |
<url>http://www.mygrid.org.uk/maven/snapshot-repository</url> | |
</repository> | |
</repositories> | |
<pluginRepositories> | |
<pluginRepository> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> | |
<id>aduna-opensource.releases</id> | |
<name>Aduna Open Source - Maven releases</name> | |
<url>http://repo.aduna-software.org/maven2/releases</url> | |
</pluginRepository> | |
</pluginRepositories> | |
</project> |