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 5B199175D8 for ; Tue, 6 Oct 2015 08:23:02 +0000 (UTC) Received: (qmail 80852 invoked by uid 500); 6 Oct 2015 08:16:18 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 80804 invoked by uid 500); 6 Oct 2015 08:16:18 -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 80791 invoked by uid 99); 6 Oct 2015 08:16:18 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2015 08:16:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B4C41C391E for ; Tue, 6 Oct 2015 08:16:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id lzfzh_1_J_a0 for ; Tue, 6 Oct 2015 08:16:10 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id B500920F10 for ; Tue, 6 Oct 2015 08:16:09 +0000 (UTC) Received: from [192.168.11.108] ([132.230.176.14]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0MVuWW-1a7hhy0LTU-00X7pu for ; Tue, 06 Oct 2015 10:16:02 +0200 Subject: Re: Ruta Maven Plugin To: user@uima.apache.org References: <56129D94.60409@averbis.com> From: =?UTF-8?Q?Peter_Kl=c3=bcgl?= X-Enigmail-Draft-Status: N1110 Message-ID: <5613836E.1090008@averbis.com> Date: Tue, 6 Oct 2015 10:16:46 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:nz/HCxE2u3D1Hsj54C6m77ip3jFY+DM3W00UJw7CVLOUOfIfgj9 8Zn8NpMdr9AIEID064Ci9ITZdh0UKOgiNPSbEep+yBFZGNGY/6OpdeHmVm0O8aozyj6vq6W OwWHxY+DCT0C/XOUUzDwKViWfAw2c8xsz3KC9gyLxk5xRRxZRF6ocKBoNerynA/dM6vMJ4u U0ZSxJvXl4h1Tj3VNptrA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Is0SGYSNjd0=:51qO3ySE3IdPGe3EiUDdYH BP/9dpi2xrtdUrJtS39DTRP85Nl6pg5QJh6qrwjcplUHFJY/OC+oSTODT4a+hGjRZZXdeppI4 D0yeSxqrrLqSi4Q6Nvq1cUkVhlYvX8k+Tcc7k4buunT64XxYj7/BaZ8PYwcQd2dWf810T9irP n4JMv82NwbhhUJ3DuYSyL8+zpapx/47v8b98ts8Dtb8jl+FceZDiBr9qNPK1YSWjDS8sZO60q Wph64pOlOk/g25nlod/WUX3lV+Kzg8pzpaR4Px9RzUKYodbg/K0ejzwCdvlrXrMJ/sqEIm6Hi 32QEvE0aMezG/0ZDEFt6yCzP6RO5N+3o0qgU89XdNyFtOSLrx57aAMAW8RZs6e59imfXsQ89M /4Zs+3mmnr4H8xrNQUFWaSz2IrfOwVT2YpbuWDtw4gzesX65RmkGutwogF+aHvqARnwqx3yie 6fDBM1e9luMLFk8RhjdRpkX6XUM0Nhi5LBTY9SH12y+MFtviWJjCdZrr8AXf8N52AQR28i7Tj rwvlFaxwzFLwPW9xHhfAygSP4P7nb+xCI3+RQE+JgWbLJOvaDGFWVQQDuznBV3gBnVP8rFcM/ WsUS+SJqy7iaIZdgW4dL9DqHBpJbME4QCXsbvnJbNtrTSB75grGZOdjVOe4YAoAIYgCVCqU0r bCkGwAgndsN6KPnJ8Dhb63364OLYNvBuRcs2/71dQQV1zDnldxY2Jgv+r+zIMcZcz5KsPqpqz 46Jl+yqDwf6dFntq Hi Armin, best switch to 2.3.1 as soon as possible. 2.3.0 was the first version of the ruta-maven-plugin and the 2.3.1 release provides some important bugfixes for it. I personally had some problems with two executions with different configurations, but I don't think that this has something to do with your problem. If the switch to the newer version does not help, then can you give me more information about the layout of your project, e.g, do you use packages? I assume that the type system import of the generated analysis engine descriptor refers to "file:/tmp/DateTypeSystem.xml". Is this a reasonable location in your application, e.g., did you copy the descriptor there? Is tmp a package name or has to something to do with your working directory? Best, Peter Am 06.10.2015 um 10:06 schrieb Armin.Wegner@bka.bund.de: > Hi Peter, > > this helped a little bit, but it is still not running. I had to add the resources section to the pom. > > ... > > > > src/main/ruta > > > src/main/resources > > > ${project.build.directory}/generated-sources/ruta/descriptor > > > ${project.build.directory}/generated-sources/ruta/resources > > > > ... > > org.apache.uima > ruta-maven-plugin > 2.3.0 > > > descriptors > generate-resources > > generate > > > > > > twl > generate-resources > > twl > > > > ${basedir}/src/main/resources/ > > *.txt > > > > > > > > > ... > > DateEngine.xml, DateTypeSystem.xml, and Date.ruta as well as the twl file are generated and packaged in the jar file. > > But the CPE throws following exception: > > ... > Caused by: org.apache.uima.resource.ResourceConfigurationException: Initialization of CAS Processor with name "aggregate" failed. > at org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCasProcessor(CPEFactory.java:1102) > at org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessors(CPEFactory.java:548) > at org.apache.uima.collection.impl.cpm.BaseCPMImpl.init(BaseCPMImpl.java:253) > at org.apache.uima.collection.impl.cpm.BaseCPMImpl.(BaseCPMImpl.java:127) > at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:73) > ... 5 more > Caused by: org.apache.uima.resource.ResourceInitializationException: Import failed. Could not read from URL file:/tmp/DateTypeSystem.xml. (Descriptor: file:/tmp/desc6822394770076871542.xml) > at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:162) > at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94) > at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62) > at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:279) > at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:331) > at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:448) > at org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCasProcessor(CPEFactory.java:1086) > ... 9 more > ... > > Do you have any suggestions? > > Regards, > Armin > > > > -----Ursprüngliche Nachricht----- > Von: Peter Klügl [mailto:peter.kluegl@averbis.com] > Gesendet: Montag, 5. Oktober 2015 17:56 > An: user@uima.apache.org > Betreff: Re: Ruta Maven Plugin > > Hi, > > there is no step-by-step description yet, only the part of the > documentation here: > https://uima.apache.org/d/ruta-current/tools.ruta.book.html#ugr.tools.ruta.maven > > There are some examples of maven configurations: > https://svn.apache.org/repos/asf/uima/ruta/trunk/example-projects/ruta-maven-example > https://svn.apache.org/repos/asf/uima/ruta/trunk/ruta-maven-plugin/src/it/multimodule > https://svn.apache.org/repos/asf/uima/ruta/trunk/ruta-maven-plugin/src/it/importByName > > My best guess without knowing your maven configuration/pom is that the > phase of the ruta-maven-plugin needs to be changed. Did you use: > > descriptors > process-classes > > generate > > > if yes, try: > > descriptors > generate-resources > > generate > > > If that solves the problem, then please accept my apologies... I will > adapt the documentation. There was actually a reason why I used > process-classes in the first place... > > Best, > > Peter > > > Am 05.10.2015 um 17:20 schrieb Armin.Wegner@bka.bund.de: >> Hi, >> >> how ist ruta-maven-plugin supposed to be used? Is there a detailed step by step description? >> >> I've created a new empty maven project, added a script in the source folder src/main/ruta and a text file containing a list of words to src/main/resources. >> mvn package builds a ...Engine.xml and a ...TypeSystem.xml in target/generated-sources/ruta/descriptor and a ...twl file in target/ruta/resources. But none of them is packaged in the jar file. >> >> I intend to add that jar file as a maven dependency and create the analysis engine by AnalysisEngineFactory.createEngineDescription(). Did I miss something? >> >> Regards, >> Armin >>