Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 3826 invoked from network); 17 Aug 2006 16:47:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2006 16:47:22 -0000 Received: (qmail 79442 invoked by uid 500); 17 Aug 2006 16:47:15 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 79389 invoked by uid 500); 17 Aug 2006 16:47:15 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 79378 invoked by uid 99); 17 Aug 2006 16:47:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 09:47:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [64.49.254.23] (HELO server1.opennms.org) (64.49.254.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 09:47:14 -0700 Received: from localhost (localhost [127.0.0.1]) by server1.opennms.org (Postfix) with ESMTP id 37CCA1D81E6 for ; Thu, 17 Aug 2006 12:46:46 -0400 (EDT) Received: from server1.opennms.org ([127.0.0.1]) by localhost (server1.opennms.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07605-02 for ; Thu, 17 Aug 2006 11:46:45 -0500 (CDT) Received: from [192.168.1.101] (cpe-069-134-209-239.nc.res.rr.com [69.134.209.239]) by server1.opennms.org (Postfix) with ESMTP id BDF231D818D for ; Thu, 17 Aug 2006 12:46:44 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <930F5D613A943B41A5392993AC8294030593FCA8@EXCHANGE.trader> References: <930F5D613A943B41A5392993AC8294030593FCA8@EXCHANGE.trader> Content-Type: multipart/alternative; boundary=Apple-Mail-10--715168956 Message-Id: From: Matt Brozowski Subject: Re: ant dependency list Date: Thu, 17 Aug 2006 12:46:13 -0400 To: "Maven Users List" X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at opennms.org X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Apple-Mail-10--715168956 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Aug 16, 2006, at 4:14 AM, Lakshman Srilakshmanan wrote: > Hi All, > > Going through the examples provided in "Developing Custom Maven > Plugin" > in Better Builds with Maven, I find that example 5.4.2 (Notifying > Other > Developers with an Ant Mojo) does not work. The error message is > "Failed > to initialise MIME mail" which means that the ant mojo could not find > mail.jar and/or activation.jar. > > I have included both the jar files in the maven-buildinfo-plugin > pom.xml > and in the guinea-pig pom.xml to no avail. Do I have to pass the > maven.compile.classpath to the notify.mojos.xml. If yes, then could > someone please show me how. I know how to pass it to an external ant > build.xml file, but this ant mojo.xml file exists within the plugin. I recently ran into similar issues passing classpaths to ant ant-mojo and it turns out there is not 'automatic' way to do it. The classpath gets passed into and as a 'reference' to a List. But for it to be a classpath in needs to be an ant path. I wrote a solution that works thought that you can look at: http://svn.sourceforge.net/viewvc/opennms/maven-plugins/trunk/opennms- groovyc-plugin What's really needed is a set of 'helper' tasks that can be used to do what my script tasks do Hope this helps. Please email if you have any suggestions. I would love to generalize it to a set of helpers for ant-mojos. Matt Brozowski ________________________________________________________________________ ___ Matt Brozowski, OpenNMS Maintainer Main: +1 919 812 4984 The OpenNMS Group, Inc. Fax: +1 503 961 7746 Email: brozow@opennms.org URL: http://www.opennms.com --Apple-Mail-10--715168956--