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 C388D10283 for ; Tue, 17 Sep 2013 08:14:54 +0000 (UTC) Received: (qmail 79358 invoked by uid 500); 17 Sep 2013 08:14:47 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 79218 invoked by uid 500); 17 Sep 2013 08:14:17 -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 79168 invoked by uid 99); 17 Sep 2013 08:14:12 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2013 08:14:12 +0000 Received: from localhost (HELO highfire.ukp.informatik.tu-darmstadt.de) (127.0.0.1) (smtp-auth username rec, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2013 08:14:11 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: Using eCorbertura Eclipse plugin with Uimafit From: Richard Eckart de Castilho In-Reply-To: Date: Tue, 17 Sep 2013 10:14:09 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@uima.apache.org X-Mailer: Apple Mail (2.1510) I'm using the Cobertura Plugin in Maven and that works just nice. uimaFIT loads the META-INF/org.uimafit/types.txt files by scanning the classpath. So either the file has not been copied from the source folder to the classpath when eCobertura is executed, or eCobertura interferes = with classloading.=20 Are you loading the ClearTK types from JARs or from check-out sources? = If it is from JARs, it may be another hint that the types.txt from your local = projects have not been copied to the classpath before eCobertura is executed. Mind, when I say "copy to the classpath", I mean copied to = target/classes or whatever you configured as your project output directory, which becomes = part of your classpath at runtime. -- Richard On 17.09.2013, at 04:14, Swirl wrote: > Has anyone tried to run eCortertura's "Cover As" with Uimafit's = automatic type=20 > loading? >=20 > My types are defined in Maven module inside the src/main/resources = folder and=20 > I have a META-INF/org.uimafit/types.txt. > In my main app, I tried to run JUnit for my unit tests and it ran = fine. But=20 > when I used "Cover As>Junit Test" by eCorburatura, it keeps saying = "JCas type=20 > "my.type.MyType" used in Java code, but was not declared in the XML = type=20 > descriptor." >=20 > Strangely, when I used EclEmma to run "Coverage As", I am able to run = the=20 > coverage successfully. >=20 > Also, it seems to affect only types defined by me. I have some cleartk = types=20 > (Token and Sentence) and I have no problem running eCorbertura with = these=20 > types. >=20 > Can anyone give a clue as to what was wrong? >=20