Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 55146 invoked from network); 18 Jul 2008 18:18:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jul 2008 18:18:12 -0000 Received: (qmail 4140 invoked by uid 500); 18 Jul 2008 18:18:10 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 4077 invoked by uid 500); 18 Jul 2008 18:18:10 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 4066 invoked by uid 99); 18 Jul 2008 18:18:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2008 11:18:10 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.59] (HELO smtp104.prem.mail.sp1.yahoo.com) (98.136.44.59) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 18 Jul 2008 18:17:13 +0000 Received: (qmail 98228 invoked from network); 18 Jul 2008 18:17:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=TQJfQ+qqJSsXohIWNTJW0ABhezfhVIwNZjJW8sAqxxH3viy8Kx8h4rdhCHGgfCpwEbxEYiIbjy90S4Q3d6JdXrHcRL1HEXEkEz7ymQJXEP5G3txfbkBySX2JXPNRlvHkg/bMQyNcbXoZ7koLMkVmHPauDqdl2w+umqKBxFNO+yg= ; Received: from unknown (HELO ?10.11.55.43?) (david_jencks@63.105.20.225 with plain) by smtp104.prem.mail.sp1.yahoo.com with SMTP; 18 Jul 2008 18:17:27 -0000 X-YMail-OSG: jGcjpJQVM1mX7zB5Xg1bLPTUJArvV_cm7P0BbbaQWqcC.4iVR6AewQBM..InsQMoyqd_OXrMd9.6MSipIPQSr7gnmmOKZ7727MmqgEBbyNQiJhBGgchRsJicdzrJuEM- X-Yahoo-Newman-Property: ymail-3 Message-Id: <192937F3-8DD8-4C43-9B54-3A93190226CB@yahoo.com> From: David Jencks To: dev@geronimo.apache.org In-Reply-To: <4880D44F.6050505@earthlink.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Another samples issue ... how much does a user have to build? Date: Fri, 18 Jul 2008 11:17:26 -0700 References: <4880D44F.6050505@earthlink.net> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org On Jul 18, 2008, at 10:35 AM, Joe Bohn wrote: > > In the past we had asserted that a user should be able to pick up an > individual sample and build it. Because of a recent change in the > samples this is no longer possible (at least not until we release > some artifacts that can be downloaded without building locally - see > details on the issue below). > > I personally think it is acceptable to provide some general > directions on building samples that require a user (at least the > first time) to checkout the entire samples svn tree and build from > the top level. It takes about 5 minutes to build all of the > samples. Following that initial build a user could choose to build > just one sample at a time. We can also provide some more complicated > directions for users that have some issue with building all of the > samples. If I don't hear any strong objections (along with > solutions to the current issue that requires a top level build) then > I will go ahead and change the doc accordingly. > I'm fine with this except I don't think we need to provide error-prone instructions that are likely to stop working soon for people who don't want to build all the samples. > > Specifics on why this is an issue: > - We had to add in the building of a tomcat utility (Txt2Html > included in buildutil). This is used to generate html from java > source and jsp files. The html is then included with the jsp & > servlet samples and can be displayed when running the samples (we > might want to consider this for some of our other samples as well). > The utility is run via ant and so we are using the maven-antrun- > plugin. When the configuration for the execution of the utility > was included in the specific sample it worked great for just that > one sample but produced errors when attempting to build from a > higher level. This is apparently because of the way the the maven > plugin is resolved and loaded. To get the build working from the > top level we had to move the dependency of the antrun-plugin on > buildutil up under pluginmanagement. However, this has the effect > of now requiring buildutil to be available for all samples even if > it is not used (since most samples use the antrun-plugin for other > purposes). There is a maven issue that describes our problem (and > indicates that it is fixed in maven 2.1.* but not 2.0.*) - MNG-1323 (http://jira.codehaus.org/browse/MNG-1323 > ). I wonder if we should write a maven plugin to do this text to html conversion? I haven't looked at what is going on or the problem at all. It's hard to believe there is no solution available now. > > > In addition to the issue above, there are other general build steps > required which will benefit from a common build process rather than > including them in each sample description. For example, we need to > make the svn repository artifacts for the specific server release > available in the user's local maven repo. I'd rather not have to > include those steps in each sample but rather point to a common build. Maybe we should rethink our svn repository strategy. It doesn't really work with the idea of plugins. How about if we do something like shading the tomcat jars to another package and releasing them with our groupId? thanks david jencks > > > Thanks, > Joe >