You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2017/01/15 01:59:44 UTC
svn commit: r1778868 - in /uima/uimafit/trunk/uimafit-examples: pom.xml
src/main/java/org/apache/uima/fit/examples/tutorial/type/
src/main/java/org/apache/uima/fit/examples/type/
Author: rec
Date: Sun Jan 15 01:59:44 2017
New Revision: 1778868
URL: http://svn.apache.org/viewvc?rev=1778868&view=rev
Log:
[UIMA-5253] Auto-generate JCas classes for examples
- Removing JCas classes from repo
- Adding JCasGen Maven plugin to POM
Removed:
uima/uimafit/trunk/uimafit-examples/src/main/java/org/apache/uima/fit/examples/tutorial/type/
uima/uimafit/trunk/uimafit-examples/src/main/java/org/apache/uima/fit/examples/type/
Modified:
uima/uimafit/trunk/uimafit-examples/pom.xml
Modified: uima/uimafit/trunk/uimafit-examples/pom.xml
URL: http://svn.apache.org/viewvc/uima/uimafit/trunk/uimafit-examples/pom.xml?rev=1778868&r1=1778867&r2=1778868&view=diff
==============================================================================
--- uima/uimafit/trunk/uimafit-examples/pom.xml (original)
+++ uima/uimafit/trunk/uimafit-examples/pom.xml Sun Jan 15 01:59:44 2017
@@ -57,7 +57,46 @@
</license>
</licenses>
<build>
- <plugins>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.uima</groupId>
+ <artifactId>jcasgen-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+ <typeSystemIncludes>
+ <typeSystemInclude>src/main/resources/org/apache/uima/fit/examples/TypeSystem.xml</typeSystemInclude>
+ </typeSystemIncludes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <!--
+ This plug-in adds the jcasgen generated source code folder as a project
+ source folder
+ -->
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>add-test-source</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>${project.build.directory}/generated-sources/jcasgen</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>