Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 33109 invoked from network); 21 Oct 2010 15:38:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Oct 2010 15:38:22 -0000 Received: (qmail 31727 invoked by uid 500); 21 Oct 2010 15:38:22 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 31541 invoked by uid 500); 21 Oct 2010 15:38:19 -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 31518 invoked by uid 99); 21 Oct 2010 15:38:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Oct 2010 15:38:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of msa@schor.com designates 69.56.216.19 as permitted sender) Received: from [69.56.216.19] (HELO gateway01.websitewelcome.com) (69.56.216.19) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 21 Oct 2010 15:38:11 +0000 Received: (qmail 18117 invoked from network); 21 Oct 2010 15:37:50 -0000 Received: from gator74.hostgator.com (67.18.27.130) by gateway01.websitewelcome.com with SMTP; 21 Oct 2010 15:37:50 -0000 Received: from [129.34.20.19] (port=55339 helo=[9.2.35.72]) by gator74.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1P8xDA-0008I1-17 for user@uima.apache.org; Thu, 21 Oct 2010 10:37:50 -0500 Message-ID: <4CC05E58.8070300@schor.com> Date: Thu, 21 Oct 2010 11:38:00 -0400 From: Marshall Schor User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: maven src directory for generated code References: <4CBFA858.7050802@ogren.info> <8CB82E09-2D15-4F61-8766-64CEE2A3F87E@tk.informatik.tu-darmstadt.de> <4CC05645.7080004@schor.com> <4CC05ABE.8010503@ogren.info> In-Reply-To: <4CC05ABE.8010503@ogren.info> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator74.hostgator.com X-AntiAbuse: Original Domain - uima.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-Virus-Checked: Checked by ClamAV on apache.org :-) Thanks. -M On 10/21/2010 11:22 AM, Philip Ogren wrote: > Marshall, > > Thank you for this helpful hint. I was just now following up on Richard's > tips and was trying to figure out how to get Eclipse to recognize the new > source directory. I think I now have a working solution! > > I will send it around shortly. > > Philip > > On 10/21/2010 9:03 AM, Marshall Schor wrote: >> Hi, >> >> I agree - lots of source generation tooling generates to >> target/generated-sources ... >> >> This has the advantage that the normal "clean" operation removes these. >> >> Using m2eclipse Eclipse plugin for maven - by default it will "miss" these >> generated directories the first time you import a project as a Maven project. >> However, the recovery is simple, and only needs doing once: right click the >> project and select Maven -> update project configuration. >> >> -Marshall >> >> On 10/21/2010 2:30 AM, Richard Matthias Eckart de Castilho wrote: >>> Hello Philip, >>> >>>> So, I would much rather have the generated >>>> code put into a different source folder that has only generated code in >>>> it. Something like src/generated/java or src/output/java or whatever >>>> the convention is. My question is whether or not there is a convention >>>> and if so could someone point me to a project that does something like this? >>> my understanding is that target/generated-sources/ is appropriate >>> - I've seen this in a couple of instances. This is also what is mentioned in >>> the NetBeans wiki on Maven best practices: >>> >>>> If your project contains generated source roots that need to appear in the >>>> project's source path, please make sure that the Maven plugin generating >>>> the sources generates them in the target/generated-sources/ >>>> directory where is folder specific to the Maven plugin used and >>>> acts as source root for the generated sources. Most common maven plugins >>>> currently follow this pattern in the default configuration. >>> (Source: http://wiki.netbeans.org/MavenBestPractices#Open_existing_project) >>> >>> There is also a Maven plugin which allows to add folders to the Maven source >>> folders list. This may help if e.g. Eclipse does not properly pick up the >>> folder: >>> >>> http://mojo.codehaus.org/build-helper-maven-plugin/usage.html >>> >>> Cheers, >>> >>> Richard >> > >> >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 9.0.862 / Virus Database: 271.1.1/3210 - Release Date: 10/21/10 >> 00:34:00 >> >