Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 66DF89E84 for ; Fri, 18 Nov 2011 13:11:24 +0000 (UTC) Received: (qmail 12905 invoked by uid 500); 18 Nov 2011 13:11:22 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 12842 invoked by uid 500); 18 Nov 2011 13:11:22 -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 12834 invoked by uid 99); 18 Nov 2011 13:11:22 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 13:11:22 +0000 Received: from localhost (HELO mail-yx0-f171.google.com) (127.0.0.1) (smtp-auth username olamy, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 13:11:21 +0000 Received: by yenl7 with SMTP id l7so3643925yen.30 for ; Fri, 18 Nov 2011 05:11:20 -0800 (PST) Received: by 10.50.17.197 with SMTP id q5mr2977517igd.2.1321621879621; Fri, 18 Nov 2011 05:11:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.158.130 with HTTP; Fri, 18 Nov 2011 05:10:57 -0800 (PST) In-Reply-To: <4EC3B0E0.200@swe-blog.net> References: <4EC3B0E0.200@swe-blog.net> From: Olivier Lamy Date: Fri, 18 Nov 2011 14:10:57 +0100 Message-ID: Subject: Re: How to write a working Custom Lifecycle? To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2011/11/16 Oliver Fischer : > Hi all, > > I try to define my own custom lifecycle, which I would like to use in som= e > of my projects. As far as I understood, I should be enough to create a > module with packaging type jar, to create a components.xml and to place t= his > file below META-INF/plexus. > > To use this packaging type it should be engough to add it to the project = as > plugin with extensions set to true: > > > =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0customGroup > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0packaingType42 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A01.0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0true > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 > > Maven knows the packaging type if I declare my packaging type like this, = but > the life cycle it self seems not to be found. > > What do I miss? My components.xml looks like this: > > > =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > org.apache.maven.lifecycle.mapping.LifecycleMapping > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0packaging42 > =A0 =A0 =A0 =A0 =A0 =A0 > org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0default > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Maven core doesn't know those phases a b d. You must use real maven phases see: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.h= tml#Lifecycle_Reference > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > org.apache.maven.plugins:maven-resources-plugin:2.4:resources > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 > > > I put the code for the packaging type on Github: > https://github.com/plexusnexus/custompackagingtype > > Also an example project which uses this packaging type: > https://github.com/plexusnexus/custompackagingusage > > Bye, > > Oliver > https://github.com/plexusnexus/custompackagingusage > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --=20 Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org