Clone URL (Committers only): https://cms.apache.org/redirect?new=stain;action=diff;uri=http://jena.apache.org/documentation%2Ftools%2Fschemagen-maven.mdtext
Updated groupId/artifactId for jena-maven-tools The plugin itself needs some further work, as the generated-sources are not subsequently compiled and included in the JAR. -- Stian Soiland-Reyes st...@apache.org Index: trunk/content/documentation/tools/schemagen-maven.mdtext =================================================================== --- trunk/content/documentation/tools/schemagen-maven.mdtext (revision 1655891) +++ trunk/content/documentation/tools/schemagen-maven.mdtext (working copy) @@ -29,12 +29,30 @@ Schemagen is available from the maven central repository. To use it, add the following dependency to your `pom.xml`: - <dependency> - <groupId>org.apache.jena.tools</groupId> - <artifactId>schemagen</artifactId> - <version>0.2-SNAPSHOT</version> - <type>maven-plugin</type> - </dependency> + <build> + <plugins> + <plugin> + <groupId>org.apache.jena</groupId> + <artifactId>jena-maven-tools</artifactId> + <version>0.7</version> + <executions> + <execution> + <id>schemagen</id> + <goals> + <goal>translate</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>org.apache.jena</groupId> + <artifactId>jena-core</artifactId> + <version>2.12.1</version> + </dependency> + </dependencies> @@ -58,9 +76,9 @@ <build> <plugins> <plugin> - <groupId>org.openjena.tools</groupId> - <artifactId>schemagen</artifactId> - <version>0.2-SNAPSHOT</version> + <groupId>org.apache.jena</groupId> + <artifactId>jena-maven-tools</artifactId> + <version>0.7</version> <configuration> </configuration> <executions> @@ -93,7 +111,7 @@ Options are, in general, given in the `<fileOptions>` section. A given `<source>` refers to one input source - one file - as named by the -`<input> name. The actual option names are taken from the RDF [config +`<input>` name. The actual option names are taken from the RDF [config file property names](http://jena.apache.org/documentation/tools/schemagen.html), omitting the namespace: @@ -116,37 +134,44 @@ ## Example configuration <build> - <plugins> - <plugin> - <groupId>org.openjena.tools</groupId> - <artifactId>schemagen</artifactId> - <version>0.2-SNAPSHOT</version> - <configuration> - <includes> - <include>src/main/vocabs/*.ttl</include> - <include>src/main/vocabs/foaf.rdf</include> - </includes> - <fileOptions> - <source> - <input>default</input> - <package-name>org.example.test</package-name> - </source> - <source> - <!-- Test2.java (only) will contain OntModel declarations --> - <input>src/main/vocabs/demo2.ttl</input> - <ontology>true</ontology> - </source> - </fileOptions> - </configuration> - <executions> - <execution> - <id>schemagen</id> - <goals> - <goal>translate</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> + <plugins> + <plugin> + <groupId>org.apache.jena</groupId> + <artifactId>jena-maven-tools</artifactId> + <version>0.7</version> + <configuration> + <includes> + <include>src/main/vocabs/*.ttl</include> + <include>src/main/vocabs/foaf.rdf</include> + </includes> + <fileOptions> + <source> + <input>default</input> + <package-name>org.example.test</package-name> + </source> + <source> + <!-- Test2.java (only) will contain OntModel declarations --> + <input>src/main/vocabs/demo2.ttl</input> + <ontology>true</ontology> + </source> + </fileOptions> + </configuration> + <executions> + <execution> + <id>schemagen</id> + <goals> + <goal>translate</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>org.apache.jena</groupId> + <artifactId>jena-core</artifactId> + <version>2.12.1</version> + </dependency> + </dependencies>