Skip to content

Instantly share code, notes, and snippets.

@butlermh
Created June 8, 2011 23:00
Show Gist options
  • Save butlermh/1015663 to your computer and use it in GitHub Desktop.
Save butlermh/1015663 to your computer and use it in GitHub Desktop.
Jena Schemagen in Maven
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<tasks>
<property name="runtime_classpath" refid="maven.runtime.classpath" />
<echo
message="Extracting DeliSchema from deliSchema.n3 and converting to Java" />
<java classname="jena.schemagen" classpath="${runtime_classpath}">
<arg
line="--inference -i config/deliSchema.n3 -e N3 -a http://delicon.sourceforge.net/schema# --package com.hp.hpl.deli -o src/main/java -n DeliSchema" />
</java>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
.....
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment