uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pablo Duboue <pablo.dub...@keatext.com>
Subject TextMarker types, JCasGenPomFriendly and Maven
Date Thu, 13 Dec 2012 19:15:32 GMT
Hi,

Just a comment, if you use the uimaFIT JCasGenPomFriendly in Maven and 
want to use TextMarker as a standalone annotator you'll need to exclude 
the generated TextMarker basic type files from the build by adding 
something like this to your pom.xml plugins:

            <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-compiler-plugin</artifactId>
             <version>3.0</version>
             <configuration>
                 <source>1.6</source>
                 <target>1.6</target>
                  <excludes>
                      
<exclude>org/apache/uima/textmarker/type/*.java</exclude>
                  </excludes>
             </configuration>
            </plugin>

I don't know if this is actually a bug in the way JCasGenPomFriendly is 
being called and it should pick up the existence of the 
org.apache.uima.textmarker.type JCas types or this is the preferred way 
to do it. The important aspect is that TextMarker has JCas types 
augmented with extra methods. Using regenerated types won't do (you'll 
get a cryptic error message java.lang.NoSuchMethodError: 
org.apache.uima.textmarker.type.TextMarkerBasic.setLowMemoryProfile(Z)V).

Mr. Kl├╝gl, if this is not in the documentation for TextMarker somewhere 
you might want to add it. (And thanks for making such a great tool 
available!)

Best regards,

P.


Mime
View raw message