From user-return-4562-apmail-uima-user-archive=uima.apache.org@uima.apache.org Fri Oct 12 19:40:37 2012 Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3816D16B for ; Fri, 12 Oct 2012 19:40:37 +0000 (UTC) Received: (qmail 30435 invoked by uid 500); 12 Oct 2012 19:40:37 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 30404 invoked by uid 500); 12 Oct 2012 19:40:37 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 30395 invoked by uid 99); 12 Oct 2012 19:40:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2012 19:40:37 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of himanshu.gahlot86@gmail.com designates 209.85.210.175 as permitted sender) Received: from [209.85.210.175] (HELO mail-ia0-f175.google.com) (209.85.210.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2012 19:40:29 +0000 Received: by mail-ia0-f175.google.com with SMTP id b35so2295431iac.6 for ; Fri, 12 Oct 2012 12:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=iWJjg6UhFK93MMLLb0gOxaSTekdoWht3tKg3WiE+g8E=; b=yvyCB1lw1URRrwTOytf2jrhMi0xVwbbvuxzy0YAzQSxHIDCPivwViiWHVR/68ZI4Kk ZANuJwgvDLleW/9+bYK4WyF8wKphVqk/UQ/z9r1Gv0iteiEXw/jwRR+57Wd8kLkPqu+K knpJlDLn8hELyI/H9S399ynhpa88S15K+ayt+/XAy1NhfIcjI+dPrRZYodzOg77wMq10 QHHoqwokcG1H5dbxD+mMUcobvBSXV60gfZt5b1LO5JjQgsMYSGZWnjpL1/3k/IzXCQKh 70du/GJBHaA2C8pNIM9wMds1OZ+/oAVYVSMTFQ8sZmpmz//7ubB83ZQ3fdIQujta9jW7 fFdA== Received: by 10.50.163.100 with SMTP id yh4mr3067013igb.71.1350070808602; Fri, 12 Oct 2012 12:40:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.111.225 with HTTP; Fri, 12 Oct 2012 12:39:48 -0700 (PDT) In-Reply-To: <50786F80.204@keatext.com> References: <50786F80.204@keatext.com> From: Himanshu Gahlot Date: Fri, 12 Oct 2012 12:39:48 -0700 Message-ID: Subject: Re: Using JCasGen outside eclipse To: user@uima.apache.org Content-Type: multipart/alternative; boundary=e89a8f643036f7e6f104cbe1dad7 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f643036f7e6f104cbe1dad7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Alexandre! This is definitely helpful. Himanshu On Fri, Oct 12, 2012 at 12:29 PM, Alexandre Patry < alexandre.patry@keatext.com> wrote: > On Fri 12 Oct 2012 02:41:45 PM EDT, Himanshu Gahlot wrote: > >> Hi, >> >> Is it possible to use the JCas generator utility in some other IDE >> (IntelliJ Idea, to be specific) other than Eclipse? Something where I ju= st >> 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 : > > [...] > > > org.uimafit > uimafit > 1.4.0 > > [...] > > > > > org.codehaus.mojo > exec-maven-plugin<**/artifactId> > 1.2.1 > > > jcasgen > generate-sources > > java > > > > > org.uimafit.util.** > JCasGenPomFriendly > > file:${project.** > basedir}/src/main/resources/**path/to/your/types/*.xml > ${project.build.** > directory}/generated-sources/**uima > > > > > > > org.codehaus.mojo > build-helper-**maven-plugin > 1.7 > > > add-uima-sources > generate-sources > > add-source > > > > ${project.build.** > directory}/generated-sources/**uima > > > > > > > > > Looking at jcasgen.sh, you could also call the class > org.apache.uima.tools.jcasgen.**Jg from a run configuration. > > Hope this help, > > Alexandre > > -- > Alexandre Patry > Ing=E9nieur-Chercheur > http://KeaText.com > > Transformez vos documents en outils de d=E9cision >>> >> << Turn your documents into decision tools > > --e89a8f643036f7e6f104cbe1dad7--