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 A264F1869E for ; Tue, 17 Nov 2015 16:23:01 +0000 (UTC) Received: (qmail 46538 invoked by uid 500); 17 Nov 2015 16:23:00 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 46461 invoked by uid 500); 17 Nov 2015 16:23:00 -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 46449 invoked by uid 99); 17 Nov 2015 16:22:59 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2015 16:22:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 57E77180A18 for ; Tue, 17 Nov 2015 16:22:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.8 X-Spam-Level: X-Spam-Status: No, score=0.8 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, KAM_ASCII_DIVIDERS=0.8] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=takari_io.20150623.gappssmtp.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id RwKni1trGUCm for ; Tue, 17 Nov 2015 16:22:44 +0000 (UTC) Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id D0263441BB for ; Tue, 17 Nov 2015 16:22:43 +0000 (UTC) Received: by iouu10 with SMTP id u10so24186940iou.0 for ; Tue, 17 Nov 2015 08:22:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=takari_io.20150623.gappssmtp.com; s=20150623; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=VpYgp07P2xY/gBF6d45/Fd16XesflP2e9UmtlcLAOek=; b=TD7lMljVdoX49smb1CTdmnlUMIvHuzq04ALmLYPQis7RFrvk1Ube3z/wrIpmQzXBoV 2ngQLu3tPTjDp+ghuX4/5m8w25PkyuOUztbRgcar/I3/HMAb1UmVn2hj+iSVv6bscX9L XpCfFJtvKClQ0UnpirPW4c1VgEHsjwmenWvHOvkt78BKlwjoAthc66dv85+fdIQOdurU WyLA0OOoa3CNYZtuJdbaC68VNgU9NuTCpEljPjonKMT8L6jFwsJc5XdvYgpKWwuTmtgC pWfl2BH/6K1q7dB/rGja7CHvX9rLh86DvQLk7kenGbanEO1f5dalhsQoJaYxpgLWYYrF Y2AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to; bh=VpYgp07P2xY/gBF6d45/Fd16XesflP2e9UmtlcLAOek=; b=F7U+ZXgaIabRsemcmMKIsS/5+MF5IOc5KMLLOHMftLJ4jb/QfrJJKAZ+il4eTjyRRG z97nyJg4RTLGjQrLoiBtnGrgsg9/xF36sHXFuEWp1qPCxjnVxfNUTana68koop1glF5w nTuHWktQVtnfKJptcXvmj7tl46HTk2D9+m2N/P17+rPsruF3R3Fsjg+KN+rodMDfvJnt VZcvGjvy/6b0yqXvYUrVi9JEEj1MtRTEvpnpKIbyP47vgOPdfWVVq0hmHX1oB0ozIoV8 8OosPvt4pB2bbQ01TLzm8eL6yNN1qXjiMIE14pS9HAt+k6Dg0PJGTxzUpnHk1DNcPYSO xY5A== X-Gm-Message-State: ALoCoQneXJSnY3yBRbdJSdI7ajqH08knfpMzdqHkP/wxwh41UBmou9x0Eynq5ppd4WZbsLqtiiPh X-Received: by 10.107.30.85 with SMTP id e82mr23548773ioe.166.1447777363168; Tue, 17 Nov 2015 08:22:43 -0800 (PST) Received: from [10.0.1.4] (67-58-207-227.eastlink.ca. [67.58.207.227]) by smtp.gmail.com with ESMTPSA id q5sm2672652igh.6.2015.11.17.08.22.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Nov 2015 08:22:41 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: Graph of lifecycle and plugin executions From: Jason van Zyl In-Reply-To: Date: Tue, 17 Nov 2015 11:22:39 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Maven Users List X-Mailer: Apple Mail (2.2104) > On Nov 17, 2015, at 11:02 AM, Thomas Meyer wrote: >=20 > Hi, >=20 > okay thanks. >=20 > Another question: >=20 > What does it mean when a mojo execution is forked? >=20 It corresponds to the execute annotation[1] where if you execute a goal = and need to make sure the prerequisite lifecycle has run prior to said = goal then Maven will =E2=80=9Cfork=E2=80=9D a lifecycle to make sure = this requirement is met. Before the goal is executed the lifecycle is = run up to the phase you specify your goal needs. So your Mojo might have = something like: @Execute(phase=3D=E2=80=9CLifecyclePhase.COMPILE=E2=80=9D) As your mojo needs to operate on compiled classes this will make sure = the compiled classes are there. [1]: = https://github.com/apache/maven-plugin-tools/blob/trunk/maven-plugin-annot= ations/src/main/java/org/apache/maven/plugins/annotations/Execute.java > I tried to find some documentation about it, but I failed. >=20 > The maven CLI execution event logger class seems to give some hint: >>>> fork started and so on. >=20 > Given the following pom = https://github.com/thomasmey/einkaufsliste-server/blob/master/pom.xml >=20 > The wildfly-swarm-plugin has two executions, but the compiler step and = the annotation preprocessor plugin seems to be executed for both mojo = executions? Why is that? I had the idea that each mojo execution happens = only once without all predecessors for each defined execution step, but = that doesn't seem to be the case. >=20 > So who can bring some light in this and/or point me in the right = direction and some documentation? >=20 > With kind regards > Thomas >=20 >=20 > Am 16.11.2015 4:04 nachm. schrieb Jason van Zyl : >>=20 >> If you use Eclipse you can go to the project properties and from = there Maven > Lifecycle Mapping and you=E2=80=99ll see something like = this: >>=20 >>=20 >>=20 >> If you don=E2=80=99t use Eclipse you can probably use this: >>=20 >> https://github.com/takari/maven-profiler >>=20 >> It was made for profiling but will show you the executions. There is = another more recent tool that shows the lifecycle but I can=E2=80=99t = recall at the moment what that is. I will try to remember and post when = I do. >>=20 >>> On Nov 16, 2015, at 9:55 AM, Thomas Meyer wrote: >>>=20 >>> Hi, >>>=20 >>> How can I print a graph of a given maven invocation with the = lifecycle >>> and for each lifecycle step which plugins are executed? >>>=20 >>> E.g. >>>=20 >>> lifecycle: >>> step 3: generate-sources >>> plugin 1 - maven-processor-plugin >>> plugin 2 - ... >>> step 4: process-sources >>> plugin 1 - xxx >>>=20 >>> because in my pom, a plugin is executed several times but it = shouldn't! >>> So i want to find out why. I tried with mvn -X but I couldn't see = why a >>> plugin was executed twice. >>>=20 >>> with kind regards >>> thomas >>>=20 >>>=20 >>>=20 >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >>> For additional commands, e-mail: users-help@maven.apache.org >>>=20 >>=20 >> Thanks, >>=20 >> Jason >>=20 >> ---------------------------------------------------------- >> Jason van Zyl >> Founder, Takari and Apache Maven >> http://twitter.com/jvanzyl >> http://twitter.com/takari_io >> --------------------------------------------------------- >>=20 >> First, the taking in of scattered particulars under one Idea, >> so that everyone understands what is being talked about ... Second, >> the separation of the Idea into parts, by dividing it at the joints, >> as nature directs, not breaking any limb in half as a bad carver = might. >>=20 >> -- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander) >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org Thanks, Jason ---------------------------------------------------------- Jason van Zyl Founder, Takari and Apache Maven http://twitter.com/jvanzyl http://twitter.com/takari_io --------------------------------------------------------- Be not afraid of growing slowly, be only afraid of standing still. -- Chinese Proverb --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org