Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 7249 invoked from network); 6 Oct 2005 11:37:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2005 11:37:24 -0000 Received: (qmail 53197 invoked by uid 500); 6 Oct 2005 11:37:09 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 52964 invoked by uid 500); 6 Oct 2005 11:37:07 -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 52828 invoked by uid 99); 6 Oct 2005 11:37:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 04:37:06 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_30_40,HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of arikkfir@gmail.com designates 64.233.184.207 as permitted sender) Received: from [64.233.184.207] (HELO wproxy.gmail.com) (64.233.184.207) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 04:37:08 -0700 Received: by wproxy.gmail.com with SMTP id i18so173614wra for ; Thu, 06 Oct 2005 04:36:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=Z7MMcqHhWEYlLMYlZc8F7fQq1nwPR9Fjnc/lzq8yvsVId350ubMhQW+3775uTEQFUWUocZ8O2JAgvdqZ40UlzU9l0Jyd3jDcoZby/oKE36HB3NMItx9t/xgYR/isitOT4tw/fh1DNBDzcCBjDuRlt1KhvMROSJ6ooKGeXQOjEbo= Received: by 10.54.81.20 with SMTP id e20mr1088199wrb; Thu, 06 Oct 2005 04:36:42 -0700 (PDT) Received: by 10.54.103.3 with HTTP; Thu, 6 Oct 2005 04:36:42 -0700 (PDT) Message-ID: <1947ec880510060436l34b87a76q34d71c18f5a9e263@mail.gmail.com> Date: Thu, 6 Oct 2005 14:36:42 +0300 From: Arik Kfir Reply-To: Arik Kfir To: Maven Users List , Brett Porter Subject: Re: Plugin Development Guide Questions In-Reply-To: <9e3862d80510060309x12ad7260x7caa9648fa42c3b2@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_25976_6982380.1128598602375" References: <9e3862d80510060309x12ad7260x7caa9648fa42c3b2@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_25976_6982380.1128598602375 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just out of curiosity - why not have one exception class, with an *optional= * causing exception? On 10/6/05, Brett Porter wrote: > > On 10/6/05, Allison, Bob wrote: > > What is the criteria for a mojo class? In other words, when I define a > > bunch of classes in a project with packaging of "maven-plugin", how is > > it determined which of those classes are mojos and which are other > > things? > > I'd have said "implements Mojo" but apparently not :) > > for Java, it is any class with class level javadoc containing a @goal > tag. See JavaMojoDescriptorExtractor. > > > What is the difference between MojoExecutionException and > > MojoFailureException? They have the same documentation but I assume > > that they should be used for different types of problems. > > Should result in a BUILD ERROR or BUILD FAILURE respectively. MEE has > a causing exception, while the other is just a string. MEE should be > the "unexpected" one, while MFE is more "expected" failures (like > compilation errors). > > This is new and a lot of the plugins don't deal with it well. > > > When defining parameters to a mojo, I see that some mojos include a > > setter for the parameter but a lot do not have any setter. Is there > > some criteria to be used to determine when a setter is needed or > > desired? > > If it is there, it is used. If not, private field injection is used. > > > What types of objects can be used as parameters? I assume this has > > something to do with what plexus can convert from XML content. > > > http://svn.plexus.codehaus.org/trunk/plexus-containers/plexus-container-d= efault/src/main/java/org/codehaus/plexus/component/configurator/converters/ > > - Brett > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > ------=_Part_25976_6982380.1128598602375--