On Fri, Oct 12, 2012 at 1:29 PM, Alexandre Patry
<[email protected]> wrote:
> On Fri 12 Oct 2012 02:41:45 PM EDT, Himanshu Gahlot wrote:
>> Is it possible to use the JCas generator utility in some other IDE
>> (IntelliJ Idea, to be specific) other than Eclipse? Something where I just
>> need to write the xml for the new type and the corresponding Java class
>> gets generated using a call to some uima class/script.
>
> I use jcasgen along with maven in Intellij IDEA. Here are the specific
> snippets for maven :
[snip exec-maven-plugin + build-helper-maven-plugin + uimafit]

Yeah, this is what we've been using in ClearTK for a while now too.

I've also recently created a jcasgen-maven-plugin which allows you do
the slightly simpler:

<plugin>
  <groupId>org.cleartk</groupId>
  <artifactId>jcasgen-maven-plugin</artifactId>
  <configuration>
    <typeSystem>src/main/resources/TypeSystem.xml</typeSystem>
  </configuration>
  <executions>
    <execution>
      <goals>
        <goal>generate</goal>
      </goals>
    </execution>
  </executions>
</plugin>

I think UIMA probably ought to be supplying this jcasgen-maven-plugin
itself, but I couldn't wait for the UIMA folks to get around to the
issue I filed for it. ;-)

https://issues.apache.org/jira/browse/UIMA-2471

Steve

Reply via email to