Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 73342 invoked from network); 19 Jul 2009 17:12:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jul 2009 17:12:15 -0000 Received: (qmail 15709 invoked by uid 500); 19 Jul 2009 17:13:20 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 15586 invoked by uid 500); 19 Jul 2009 17:13:20 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 15575 invoked by uid 99); 19 Jul 2009 17:13:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Jul 2009 17:13:20 +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 phil.steitz@gmail.com designates 74.125.92.147 as permitted sender) Received: from [74.125.92.147] (HELO qw-out-1920.google.com) (74.125.92.147) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Jul 2009 17:13:09 +0000 Received: by qw-out-1920.google.com with SMTP id 14so573573qwa.60 for ; Sun, 19 Jul 2009 10:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=xZrV3XTw2WOtBSJxgl05dpQ0ac9ZRLg6lDUuCdZPnTk=; b=W17CBiM/DF5iA7fnsdA/pbhwVpUImCQj7r5jWVG4PT5610WcV3gxuac6c56bH5Nrlq XmgYkLvaEZIXzsRpDQHanhdWjS5D7dQYb4+QlJMCiSkE0fHhBFV4qSHYRnE5SHdfoWG0 0URWyQVMwqumccEIaSg/IO/CNGWU1HhWcW0g0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=qBC7j3SW+ZooNCZ44qEvgejNdo+5sSS7erIH8eA7mxRN5vT1hP0lMClODAvhlBRLu3 b/MMSgNayZddPJufU47EUVjObufTR+CdzWsBBmwFawWNDYfPw8Ut5lXgrBYZJPVJYcH5 m8cOIqizu8LQS57sR8usY+baew3SPewHQxGcU= Received: by 10.224.73.146 with SMTP id q18mr2155696qaj.149.1248023568642; Sun, 19 Jul 2009 10:12:48 -0700 (PDT) Received: from phil-steitzs-macbook-pro.local (pool-96-227-146-177.phlapa.east.verizon.net [96.227.146.177]) by mx.google.com with ESMTPS id 7sm3067293qwf.48.2009.07.19.10.12.47 (version=SSLv3 cipher=RC4-MD5); Sun, 19 Jul 2009 10:12:48 -0700 (PDT) Message-ID: <4A63540E.9000304@gmail.com> Date: Sun, 19 Jul 2009 13:12:46 -0400 From: Phil Steitz User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: Commons Developers List Subject: Re: [math] Releasing 2.0 References: <4A61E578.7020103@gmail.com> <4A61F2C7.9040200@free.fr> <4A6216B0.4000007@free.fr> <4A621F47.6080702@gmail.com> <4A622551.8050108@free.fr> <4A632BDE.8060706@gmail.com> <4A633976.6090400@free.fr> <4A633B82.3070701@gmail.com> <4A633CAC.3040304@free.fr> <4A63488B.3020305@gmail.com> <4A634DD3.20700@free.fr> In-Reply-To: <4A634DD3.20700@free.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Luc Maisonobe wrote: > Phil Steitz a �crit : > >> Luc Maisonobe wrote: >> >>> Phil Steitz a �crit : >>> >>> >>>> Luc Maisonobe wrote: >>>> >>>> >>>>> Phil Steitz a �crit : >>>>> >>>>> >>>>> >>>>>>>> How about we use the changes plugin to generate a text file and then >>>>>>>> edit and commit as RELEASE-NOTES.txt. >>>>>>>> >>>>>>>> >>>>>>> I will try to do it tomorrow >>>>>>> >>>>>>> >>>>>>> >>>>>> I added a velocity template and directed the changes plugin to use it. >>>>>> mvn changes:announcement-generate >>>>>> mv target/announcement/math-release-notes.vm RELEASE-NOTES.txt >>>>>> >>>>>> >>>>> The changes plugin does not find the template. As per >>>>> http://maven.apache.org/plugins/maven-changes-plugin/examples/using-a-custom-announcement-template.html >>>>> >>>>> >>>>> the templateDirectory should be a subdirectory of >>>>> ${basedir}/src/main/resources/. I can change this location, of course, >>>>> but it raises two issues to me: >>>>> - should we change the complete layout to follow the maven way and >>>>> also >>>>> change src/java into src/main/java src/test into src/test/java >>>>> and so >>>>> on ? >>>>> - why does this location don't work since it seems to be the same for >>>>> [pool] ? >>>>> >>>>> >>>> Did you update pom.xml? The mods I committed to the pom specify the >>>> template directory. >>>> >>>> >>> Yes. I saw the update and the specification >>> src/template but the plugin >>> looked at this below src/main/resources. >>> >>> >> This is strange. Should work. What exactly is the error message you >> are getting when you do >> >> mvn changes:announcement-generate >> >> from trunk/ ? >> > > This one: > > [INFO] [changes:announcement-generate] > [INFO] Creating announcement file from > /home/luc/sources/apache/commons-math/src/site/xdoc/changes.xml... > [ERROR] ResourceManager : unable to find resource > 'src/template/math-release-notes.vm' in any resource loader. > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Resource not found. > > Embedded error: Template not found. ( src/template/math-release-notes.vm ) > I guess what works4me is somehow OS dependent. IIRC, I have done this successfully on both Linux and Mac OS. What is odd is that if I use ${basedir}/src/template maven claims not to be able to find the file, even though ls with the path that is says it can't find identifies the correct file. Looks like you got it to work somehow ;) I am OK rearranging the files so things are in the default locations if that works for you. Phil > Luc > > >> Phil >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org