| <?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> |
| <parent> |
| <groupId>org.purl.wf4ever.provtaverna</groupId> |
| <artifactId>prov-taverna</artifactId> |
| <version>1.7</version> |
| </parent> |
| <artifactId>prov-elmo</artifactId> |
| <name>Taverna PROV W3 Provenance ontology Elmo bindings</name> |
| <properties> |
| <elmo.version>1.5</elmo.version> |
| <!-- Because of Raven this must match whatever Elmo depends on! :( --> |
| <sesame.version>2.2.4</sesame.version> |
| </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.w3.prov=http://www.w3.org/ns/prov#" /> |
| <arg value="-p" /> |
| <arg value="prov" /> |
| <arg value="-j" /> |
| <arg value="target/prov-ontology.jar" /> |
| <!-- <arg value="-p" /> <arg value="" /> --> |
| <arg value="src/main/resources/org/purl/wf4ever/provtaverna/prov-20120724.owl" /> |
| <classpath refid="maven.plugin.classpath" /> |
| <classpath> |
| <pathelement path="." /> |
| </classpath> |
| </java> |
| <unzip src="${project.build.directory}/prov-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> |
| </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> |
| <ignore /> |
| </action> |
| </pluginExecution> |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId> |
| org.codehaus.mojo |
| </groupId> |
| <artifactId> |
| build-helper-maven-plugin |
| </artifactId> |
| <versionRange> |
| [1.5,) |
| </versionRange> |
| <goals> |
| <goal>add-resource</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore /> |
| </action> |
| </pluginExecution> |
| </pluginExecutions> |
| </lifecycleMappingMetadata> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| <dependencies> |
| <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> |
| </dependencies> |
| <description>W3C Provenance WG Prov ontology bindings for Sesame/Elmo</description> |
| <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> |
| </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> |