Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E096410140 for ; Wed, 1 Jan 2014 14:55:25 +0000 (UTC) Received: (qmail 2408 invoked by uid 500); 1 Jan 2014 14:55:16 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 2359 invoked by uid 500); 1 Jan 2014 14:55:15 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 2343 invoked by uid 99); 1 Jan 2014 14:55:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jan 2014 14:55:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [199.193.192.100] (HELO codehaus01.managed.contegix.com) (199.193.192.100) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jan 2014 14:55:05 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 1838CB108C for ; Wed, 1 Jan 2014 08:54:45 -0600 (CST) Date: Wed, 1 Jan 2014 08:54:45 -0600 (CST) From: "Herve Boutemy (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (MNG-5555) @parameter expression="${mojoExecution.lifecyclePhase}" does not work in 3.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/MNG-5555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Herve Boutemy updated MNG-5555: ------------------------------- Description: Maven-core:3.1.1 {code:java}/** * @parameter expression="${mojoExecution}" */ @Parameter(defaultValue = "${mojoExecution}") private org.apache.maven.plugin.MojoExecution execution; public org.apache.maven.plugin.MojoExecution getExecution(){ return execution; } /** * @parameter expression="${mojoExecution.lifecyclePhase}" */ @Parameter(defaultValue = "${mojoExecution.lifecyclePhase}") private String lifecyclePhase; public org.apache.maven.model.Plugin plugin=new org.apache.maven.model.Plugin(); public String getLifecyclePhase() { if(lifecyclePhase==null) { plugin.setGroupId("org.apache.maven.plugins"); plugin.setArtifactId("maven-compiler-plugin"); plugin.setVersion("3.1"); String goal="compile"; String executionId="executionId"; System.out.println("CompilerMojoTestCase::getLifecyclePhase goal="+goal+" executionId="+executionId); org.apache.maven.plugin.MojoExecution mojo=new org.apache.maven.plugin.MojoExecution((org.apache.maven.model.Plugin)plugin, goal, executionId ); lifecyclePhase= mojo.getLifecyclePhase(); } return lifecyclePhase; }{code} produces: CompilerMojoTestCase::getLifecyclePhase goal=compile executionId=executionId CompilerMojoTestCase::testCompilerBasic LINE 143 getLifeyclePhase()= null I am using 3.1.1 jars top to botton why does lifecyclePhase always produce null? was: Maven-core:3.1.1 /** * @parameter expression="${mojoExecution}" */ @Parameter(defaultValue = "${mojoExecution}") private org.apache.maven.plugin.MojoExecution execution; public org.apache.maven.plugin.MojoExecution getExecution(){ return execution; } /** * @parameter expression="${mojoExecution.lifecyclePhase}" */ @Parameter(defaultValue = "${mojoExecution.lifecyclePhase}") private String lifecyclePhase; public org.apache.maven.model.Plugin plugin=new org.apache.maven.model.Plugin(); public String getLifecyclePhase() { if(lifecyclePhase==null) { plugin.setGroupId("org.apache.maven.plugins"); plugin.setArtifactId("maven-compiler-plugin"); plugin.setVersion("3.1"); String goal="compile"; String executionId="executionId"; System.out.println("CompilerMojoTestCase::getLifecyclePhase goal="+goal+" executionId="+executionId); org.apache.maven.plugin.MojoExecution mojo=new org.apache.maven.plugin.MojoExecution((org.apache.maven.model.Plugin)plugin, goal, executionId ); lifecyclePhase= mojo.getLifecyclePhase(); } return lifecyclePhase; } produces: CompilerMojoTestCase::getLifecyclePhase goal=compile executionId=executionId CompilerMojoTestCase::testCompilerBasic LINE 143 getLifeyclePhase()= null I am using 3.1.1 jars top to botton why does lifecyclePhase always produce null? > @parameter expression="${mojoExecution.lifecyclePhase}" does not work in 3.1.1 > ------------------------------------------------------------------------------ > > Key: MNG-5555 > URL: https://jira.codehaus.org/browse/MNG-5555 > Project: Maven 2 & 3 > Issue Type: Bug > Components: Multiple Language Support > Affects Versions: 3.1.0-alpha-1 > Environment: JDK 1.7.0.25 > maven 3.1.1 > Reporter: Martin Gainty > Priority: Minor > > Maven-core:3.1.1 > {code:java}/** > * @parameter expression="${mojoExecution}" > */ > @Parameter(defaultValue = "${mojoExecution}") > private org.apache.maven.plugin.MojoExecution execution; > public org.apache.maven.plugin.MojoExecution getExecution(){ return execution; } > /** > * @parameter expression="${mojoExecution.lifecyclePhase}" > */ > @Parameter(defaultValue = "${mojoExecution.lifecyclePhase}") > private String lifecyclePhase; > public org.apache.maven.model.Plugin plugin=new org.apache.maven.model.Plugin(); > public String getLifecyclePhase() > { > if(lifecyclePhase==null) > { > plugin.setGroupId("org.apache.maven.plugins"); > plugin.setArtifactId("maven-compiler-plugin"); > plugin.setVersion("3.1"); > String goal="compile"; > String executionId="executionId"; > System.out.println("CompilerMojoTestCase::getLifecyclePhase goal="+goal+" executionId="+executionId); > org.apache.maven.plugin.MojoExecution mojo=new org.apache.maven.plugin.MojoExecution((org.apache.maven.model.Plugin)plugin, goal, executionId ); > lifecyclePhase= mojo.getLifecyclePhase(); > } > return lifecyclePhase; > }{code} > produces: > CompilerMojoTestCase::getLifecyclePhase goal=compile executionId=executionId > CompilerMojoTestCase::testCompilerBasic LINE 143 getLifeyclePhase()= null > I am using 3.1.1 jars top to botton > why does lifecyclePhase always produce null? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira