From user-return-6376-apmail-uima-user-archive=uima.apache.org@uima.apache.org Wed Apr 1 15:41:18 2015 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 D8A5517470 for ; Wed, 1 Apr 2015 15:41:18 +0000 (UTC) Received: (qmail 26323 invoked by uid 500); 1 Apr 2015 15:41:18 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 26274 invoked by uid 500); 1 Apr 2015 15:41: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 26263 invoked by uid 99); 1 Apr 2015 15:41:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 15:41:18 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [212.227.126.131] (HELO mout.kundenserver.de) (212.227.126.131) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 15:41:13 +0000 Received: from [192.168.11.108] ([132.230.176.14]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0Ll1qT-1ZBqca0KDF-00aoUG for ; Wed, 01 Apr 2015 17:40:21 +0200 Message-ID: <551C118D.2050605@averbis.com> Date: Wed, 01 Apr 2015 17:41:01 +0200 From: =?windows-1252?Q?Peter_Kl=FCgl?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: Developing UIMA Ruta Rules in Maven Projects References: <551965A5.8000401@averbis.com> <551AF598.8050506@uni-wuerzburg.de> <410CFC14-EF83-4A6A-B3C8-A0BC2E95AB50@apache.org> In-Reply-To: <410CFC14-EF83-4A6A-B3C8-A0BC2E95AB50@apache.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:g58gnA5vLskuksIJX/jWsdIuRIA8SZImCn+GZnkY9NyEiAYS3jJ IZF9QkC0hoBhWoFnDDeDY8jeBzPR+cBNWBpzcqn8CN2n8KvgPdzdjOQjCtbU7TmEhI5iDPI XQPpUxcN2Qwg/PAlm/qcEBI/tl9Rr9ksJj5stLmqzQaxgFcrHrd/JUWGwkhMI1dIdrTQe/I g0dzNg8j/kKtyqPCwWB3w== X-UI-Out-Filterresults: notjunk:1; X-Virus-Checked: Checked by ClamAV on apache.org Am 01.04.2015 um 15:43 schrieb Richard Eckart de Castilho: > On 31.03.2015, at 21:29, Peter Klügl wrote: > >> My first investigations for a m2e project configurator haven't been really successful. If someone has experience in this field... any help is welcome ;-) > You are talking about a connector that configures the ruta workbench based on settings made in the POM or on a maven-plugin that does something during a maven-based build? A connector that configures maven projects, e.g., sets the ruta nature, script source folders etc. This should be the correct way to do it, I think. I was also thinking about a maven-plugin that does this brute-force, but I assume that would only be a quick and dirty solution for configuring eclipse-related resources like .project. I do not yet have a good overview of the best practices... >> I intent to support src/main/ruta by default, but also other source folders since I can think of users that rather interpet ruta files as resources than as program code. Thus, they want to place it somewhere under src/main/resources. Complete support has maybe to wait for the release after next. > Well, ruta is a script-based language. So I would expect that ruta files are copied verbatim from whatever folder they are in to target/classes anyway. > > It is probably a good best practice to let ruta scripts live in packages (cf. Java packages), so they should probably merge nicely into the classpath - as ruta files, which would effectively be resources. Mind that you can even consider ".class" files as resources. > > The distinction into src/main/java and src/main/resources was imho made mainly to separate (Java-)code from non-code. Ruta is definitely code, so src/main/ruta makes a lot of sense to me. > For other languages, we have e.g. src/main/groovy (and there are probably src/main/scala or src/main/flex, etc.). This makes it easier for language-specific Maven plugins to locate the code they are supposed to operate on. > > In which case would you prefer to store stuff in src/main/resources? I heart of people that want to put all resources that are loaded by analysis engines in a specific sub-folder of src/main/resources, which is then not copied to target/classes but to target/resources. I think src/main/ruta should become the default, but all other locations should also be supported. Best, Peter > > Cheers, > > -- Richard >