Re: [VOTE] Release Apache Maven Wagon version 2.6

2013-12-29 Thread Benson Margulies
+1 from me.

On Sun, Dec 29, 2013 at 9:36 PM, Benson Margulies  wrote:
> Hi,
>
> We solved 3 issues:
>
>
> ** Improvement
> * [WAGON-401] - Access Denied due to missing User-Agent
> * [WAGON-402] - Upgrade Apache HttpClient based wagon provider to
> HttpClient 4.3
> * [WAGON-403] - SSH agent support for wagon-ssh
>
>
> There are still a couple of issues left in JIRA:
> http://jira.codehaus.org/issues/?jql=project%20%3D%20WAGON%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20priority%20DESC
>
> Staging repo:
> https://repository.apache.org/content/repositories/maven-029/
> https://repository.apache.org/content/repositories/maven-029/org/apache/maven/wagon/wagon/2.6/wagon-2.6-source-release.zip
>
> Source release checksum(s):
> wagon-2.6-source-release.zip sha1: df35af34cecd36db9f04ff7fda6d97a47a7446b8
>
> Staging site:
> http://maven.apache.org/wagon-archives/wagon-LATEST
>
> Guide to testing staged releases:
> http://maven.apache.org/guides/development/guide-testing-releases.html
>
> Vote open for 72 hours.
>
> [ ] +1
> [ ] +0
> [ ] -1

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



[VOTE] Release Apache Maven Wagon version 2.6

2013-12-29 Thread Benson Margulies
Hi,

We solved 3 issues:


** Improvement
* [WAGON-401] - Access Denied due to missing User-Agent
* [WAGON-402] - Upgrade Apache HttpClient based wagon provider to
HttpClient 4.3
* [WAGON-403] - SSH agent support for wagon-ssh


There are still a couple of issues left in JIRA:
http://jira.codehaus.org/issues/?jql=project%20%3D%20WAGON%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20priority%20DESC

Staging repo:
https://repository.apache.org/content/repositories/maven-029/
https://repository.apache.org/content/repositories/maven-029/org/apache/maven/wagon/wagon/2.6/wagon-2.6-source-release.zip

Source release checksum(s):
wagon-2.6-source-release.zip sha1: df35af34cecd36db9f04ff7fda6d97a47a7446b8

Staging site:
http://maven.apache.org/wagon-archives/wagon-LATEST

Guide to testing staged releases:
http://maven.apache.org/guides/development/guide-testing-releases.html

Vote open for 72 hours.

[ ] +1
[ ] +0
[ ] -1

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



RE: Plugin phase awareness...

2013-12-29 Thread Martin Gainty

  


> From: mgai...@hotmail.com
> To: dev@maven.apache.org
> Subject: RE: Plugin phase awareness...
> Date: Sun, 29 Dec 2013 17:46:29 -0500
> 
> 
> 
> 
> 
> 
> > Date: Sun, 29 Dec 2013 15:13:12 +
> > Subject: Re: Plugin phase awareness...
> > From: stephen.alan.conno...@gmail.com
> > To: dev@maven.apache.org
> > 
> > Are you running the mojo directly in your testing by any chance?
> > 
> > Eg
> > 
> > mvn short-name:goal
> MG>Correct I was testing in this fashion
> 
> > As opposed to
> > 
> > mvn phase
> MG>Thanks Stephen I will try this out
MG_12_29_2013>
 /**
  * @parameter expression="${mojoExecution}"
  */
 @Parameter(defaultValue = "${mojoExecution}")
 private org.apache.maven.plugin.MojoExecution execution; //supposedly 
mojoExecution injected here
 public org.apache.maven.plugin.MojoExecution getExecution() { return 
execution; } //accessor for execution
 /**
  * @parameter expression="${mojoExecution.lifecyclePhase}"
  */
@Parameter(defaultValue = "${mojoExecution.lifecyclePhase}")
private String lifecyclePhase; //supposedly lifecyclePhase is injected here
public org.apache.maven.model.Plugin plugin=new 
org.apache.maven.model.Plugin();
public String getLifecyclePhase() { //accessor for lifecyclePhase
   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;
 }

MG_12_29_2013>public void testCompilerBasic() throws Exception {
  System.out.println("CompilerMojoTestCase::testCompilerBasic LINE 143 
getLifeyclePhase()= "+getLifecyclePhase());

MG_12_29_2013>mvn -e -X -o process-test-classes 1> errors.lst
MG_12_29_2013>CompilerMojoTestCase::getLifecyclePhase goal=compile 
executionId=executionId
MG_12_29_2013>CompilerMojoTestCase::testCompilerBasic LINE 143 
getLifeyclePhase()= null

MG_12_29_2013>My thinking is that lifecyclePhase is somehow not being injected..
MG_12_29_2013>Ideas?
> 
> > Because if the former, then the phase is null as the execution was not
> > bound to a phase.
> > 
> > I have not used this specific property before, so cannot speak to whether
> > it works when bound to a phase, but if your test plugin execution is not
> > bound to a phase then you would not expect to see a non null value
> > 
> > On Sunday, 29 December 2013, Martin Gainty wrote:
> > 
> > > Morning All-
> > >
> > >
> > >
> > > Even after downloading maven-core 3.1.1 source and re-compiling to new
> > > maven-core-3.1.1.jar distro
> > > and forcing maven-core-3.1.1 dependency into maven-surefire-plugin
> > >
> > >
> > > I could not get ${mojoExecution.lifecyclePhase} to display anything other
> > > than null
> > >
> > >
> > > https://jira.codehaus.org/browse/MNG-
> > >
> > >
> > >
> > > Ideas?
> > >
> > > Martin --
> > > __
> > >
> > >
> > > Inte förändra och störa denna överföring
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > From: mgai...@hotmail.com 
> > > To: dev@maven.apache.org 
> > > Subject: RE: Plugin phase awareness...
> > > Date: Wed, 25 Dec 2013 22:40:07 -0500
> > >
> > >
> > >
> > >
> > > Wasted an enormous amount of time chasing the exact location of .git
> > > file.. i guess its a good thing it was Christmas
> > >
> > > Thanks Jason!
> > > Martin Gainty
> > > __
> > >
> > >
> > >
> > >
> > >
> > > > From: jpye...@pdinc.us
> > > > To: dev@maven.apache.org
> > > > Subject: RE: Plugin phase awareness...
> > > > Date: Wed, 25 Dec 2013 10:52:34 -0500
> > > >
> > > > > -Original Message-
> > > > > From: Martin Gainty
> > > > > Sent: Wednesday, December 25, 2013 10:40
> > > > >
> > > > > bash>git clone
> > > > > bash>https://github.com/apache/maven/blob/maven-3.1.1/maven-core src
> > > > > Cloning into 'src'...
> > > > > fatal: repository
> > > > > 'https://github.com/apache/maven/blob/maven-3.1.1/maven-core/'
> > > > > not found
> > > >
> > > > It is not like subversion, git clone https://github.com/apache/maven.git
> > > >
> > > > The git operation will have to happen from the root of the repository,
> > > and git
> > > > hub does not auto redirect git clones to the proper url from the repo
> > > browser
> > > > urls.
> > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > > Date: Tue, 24 Dec 2013 18:51:59 -0500
> > > > > > From: i...@ifedorenko.com
> > > > > > To: dev@maven.apache.org
> > > > > > Subject: Re: Plugin phase awareness...
> > > > > >
> > > > > >
> > > > > https://github.com/apache/maven/blob/maven-3.1.1/maven-core/src/main/j
> > > > 

wagon tests

2013-12-29 Thread Benson Margulies
I ran one build of maven-wagon as a warmup for releasing. No problems.

All subsequent attempts have died in the http wagon tests, with a
variety of failures.

Has anyone got some reliable way to run these builds?

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: Plugin phase awareness...

2013-12-29 Thread Lennart Jörelid
This actually provides another way to know how the Mojo was invoked.
Not bad.

:)


2013/12/29 Stephen Connolly 

> Are you running the mojo directly in your testing by any chance?
>
> Eg
>
> mvn short-name:goal
>
> As opposed to
>
> mvn phase
>
> Because if the former, then the phase is null as the execution was not
> bound to a phase.
>
> I have not used this specific property before, so cannot speak to whether
> it works when bound to a phase, but if your test plugin execution is not
> bound to a phase then you would not expect to see a non null value
>
> On Sunday, 29 December 2013, Martin Gainty wrote:
>
> > Morning All-
> >
> >
> >
> > Even after downloading maven-core 3.1.1 source and re-compiling to new
> > maven-core-3.1.1.jar distro
> > and forcing maven-core-3.1.1 dependency into maven-surefire-plugin
> >
> >
> > I could not get ${mojoExecution.lifecyclePhase} to display anything other
> > than null
> >
> >
> > https://jira.codehaus.org/browse/MNG-
> >
> >
> >
> > Ideas?
> >
> > Martin --
> > __
> >
> >
> > Inte förändra och störa denna överföring
> >
> >
> >
> >
> >
> >
> >
> > From: mgai...@hotmail.com 
> > To: dev@maven.apache.org 
> > Subject: RE: Plugin phase awareness...
> > Date: Wed, 25 Dec 2013 22:40:07 -0500
> >
> >
> >
> >
> > Wasted an enormous amount of time chasing the exact location of .git
> > file.. i guess its a good thing it was Christmas
> >
> > Thanks Jason!
> > Martin Gainty
> > __
> >
> >
> >
> >
> >
> > > From: jpye...@pdinc.us
> > > To: dev@maven.apache.org
> > > Subject: RE: Plugin phase awareness...
> > > Date: Wed, 25 Dec 2013 10:52:34 -0500
> > >
> > > > -Original Message-
> > > > From: Martin Gainty
> > > > Sent: Wednesday, December 25, 2013 10:40
> > > >
> > > > bash>git clone
> > > > bash>https://github.com/apache/maven/blob/maven-3.1.1/maven-core src
> > > > Cloning into 'src'...
> > > > fatal: repository
> > > > 'https://github.com/apache/maven/blob/maven-3.1.1/maven-core/'
> > > > not found
> > >
> > > It is not like subversion, git clone
> https://github.com/apache/maven.git
> > >
> > > The git operation will have to happen from the root of the repository,
> > and git
> > > hub does not auto redirect git clones to the proper url from the repo
> > browser
> > > urls.
> > >
> > > >
> > > >
> > > >
> > > >
> > > > > Date: Tue, 24 Dec 2013 18:51:59 -0500
> > > > > From: i...@ifedorenko.com
> > > > > To: dev@maven.apache.org
> > > > > Subject: Re: Plugin phase awareness...
> > > > >
> > > > >
> > > >
> https://github.com/apache/maven/blob/maven-3.1.1/maven-core/src/main/j
> > > > > ava/org/apache/maven/plugin/MojoExecution.java#L160
> > > > >
> > > > >
> > > > > ... and, like I said, the example I pasted elsewhere in this thread
> > > > > does work in maven 3.0.5 and 3.1.1.
> > > > >
> > > > > --
> > > > > Regards,
> > > > > Igor
> > > > >
> > > > > On 12/24/2013, 18:01, Martin Gainty wrote:
> > > > > > not found in 3.1.1
> > > > > >
> > > > > >
> > > > > >
> > > > > > ${user.home}\org\apache\maven\maven-core\3.1.1\jar>javap .\or
> > > > > > g\apache\maven\plugin\MojoExecution | grep lifecyclePhase
> > > > > >
> > > > > >
> > > > > > Warning: Binary file .\org\apache\maven\plugin\MojoExecution
> > > > > > contains org.apache.maven.plugin.MojoExecution
> > > > > >
> > > > > >
> > > > > > I have 3.1.1 fully operational but I cannt locate the
> > > > lifecyclePhase
> > > > > > in MojoExecution
> > > > > >
> > > > > > I *thought* 3.1.1 was latest...does anyone know where the
> > > > lifecyclePhase attribute is located?
> > > > > >
> > > > > >
> > > > > >
> > > > > > Thanks!
> > > > > > Martin
> > > > > >
> > > > > > __
> > > > > > God jul till alla och
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >> From: mgai...@hotmail.com
> > > > > >> To: dev@maven.apache.org
> > > > > >> Subject: RE: Plugin phase awareness...
> > > > > >> Date: Tue, 24 Dec 2013 08:01:01 -0500
> > > > > >>
> > > > > >> mvn version 3.0.2
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> public class CompilerMojo extends AbstractCompilerMojo
> > > > > >>
> > > > > >> {
> > > > > >>
> > > > > >> /**
> > > > > >> * @parameter expression="${mojoExecution}"
> > > > > >> */
> > > > > >> @Pa
>
>
>
> --
> Sent from my phone
>



-- 

--
+==+
| Bästa hälsningar,
| [sw. "Best regards"]
|
| Lennart Jörelid
| EAI Architect & Integrator
|
| jGuru Europe AB
| Mölnlycke - Kista
|
| Email: l...@jguru.se
| URL:   www.jguru.se
| Phone
| (skype):jgurueurope
| (intl): +46 708 507 603
| (domestic): 0708 - 507 603
+==+


RE: Plugin phase awareness...

2013-12-29 Thread Martin Gainty


  


> Date: Sun, 29 Dec 2013 15:13:12 +
> Subject: Re: Plugin phase awareness...
> From: stephen.alan.conno...@gmail.com
> To: dev@maven.apache.org
> 
> Are you running the mojo directly in your testing by any chance?
> 
> Eg
> 
> mvn short-name:goal
MG>Correct I was testing in this fashion
 
> As opposed to
> 
> mvn phase
MG>Thanks Stephen I will try this out
 
> Because if the former, then the phase is null as the execution was not
> bound to a phase.
> 
> I have not used this specific property before, so cannot speak to whether
> it works when bound to a phase, but if your test plugin execution is not
> bound to a phase then you would not expect to see a non null value
> 
> On Sunday, 29 December 2013, Martin Gainty wrote:
> 
> > Morning All-
> >
> >
> >
> > Even after downloading maven-core 3.1.1 source and re-compiling to new
> > maven-core-3.1.1.jar distro
> > and forcing maven-core-3.1.1 dependency into maven-surefire-plugin
> >
> >
> > I could not get ${mojoExecution.lifecyclePhase} to display anything other
> > than null
> >
> >
> > https://jira.codehaus.org/browse/MNG-
> >
> >
> >
> > Ideas?
> >
> > Martin --
> > __
> >
> >
> > Inte förändra och störa denna överföring
> >
> >
> >
> >
> >
> >
> >
> > From: mgai...@hotmail.com 
> > To: dev@maven.apache.org 
> > Subject: RE: Plugin phase awareness...
> > Date: Wed, 25 Dec 2013 22:40:07 -0500
> >
> >
> >
> >
> > Wasted an enormous amount of time chasing the exact location of .git
> > file.. i guess its a good thing it was Christmas
> >
> > Thanks Jason!
> > Martin Gainty
> > __
> >
> >
> >
> >
> >
> > > From: jpye...@pdinc.us
> > > To: dev@maven.apache.org
> > > Subject: RE: Plugin phase awareness...
> > > Date: Wed, 25 Dec 2013 10:52:34 -0500
> > >
> > > > -Original Message-
> > > > From: Martin Gainty
> > > > Sent: Wednesday, December 25, 2013 10:40
> > > >
> > > > bash>git clone
> > > > bash>https://github.com/apache/maven/blob/maven-3.1.1/maven-core src
> > > > Cloning into 'src'...
> > > > fatal: repository
> > > > 'https://github.com/apache/maven/blob/maven-3.1.1/maven-core/'
> > > > not found
> > >
> > > It is not like subversion, git clone https://github.com/apache/maven.git
> > >
> > > The git operation will have to happen from the root of the repository,
> > and git
> > > hub does not auto redirect git clones to the proper url from the repo
> > browser
> > > urls.
> > >
> > > >
> > > >
> > > >
> > > >
> > > > > Date: Tue, 24 Dec 2013 18:51:59 -0500
> > > > > From: i...@ifedorenko.com
> > > > > To: dev@maven.apache.org
> > > > > Subject: Re: Plugin phase awareness...
> > > > >
> > > > >
> > > > https://github.com/apache/maven/blob/maven-3.1.1/maven-core/src/main/j
> > > > > ava/org/apache/maven/plugin/MojoExecution.java#L160
> > > > >
> > > > >
> > > > > ... and, like I said, the example I pasted elsewhere in this thread
> > > > > does work in maven 3.0.5 and 3.1.1.
> > > > >
> > > > > --
> > > > > Regards,
> > > > > Igor
> > > > >
> > > > > On 12/24/2013, 18:01, Martin Gainty wrote:
> > > > > > not found in 3.1.1
> > > > > >
> > > > > >
> > > > > >
> > > > > > ${user.home}\org\apache\maven\maven-core\3.1.1\jar>javap .\or
> > > > > > g\apache\maven\plugin\MojoExecution | grep lifecyclePhase
> > > > > >
> > > > > >
> > > > > > Warning: Binary file .\org\apache\maven\plugin\MojoExecution
> > > > > > contains org.apache.maven.plugin.MojoExecution
> > > > > >
> > > > > >
> > > > > > I have 3.1.1 fully operational but I cannt locate the
> > > > lifecyclePhase
> > > > > > in MojoExecution
> > > > > >
> > > > > > I *thought* 3.1.1 was latest...does anyone know where the
> > > > lifecyclePhase attribute is located?
> > > > > >
> > > > > >
> > > > > >
> > > > > > Thanks!
> > > > > > Martin
> > > > > >
> > > > > > __
> > > > > > God jul till alla och
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >> From: mgai...@hotmail.com
> > > > > >> To: dev@maven.apache.org
> > > > > >> Subject: RE: Plugin phase awareness...
> > > > > >> Date: Tue, 24 Dec 2013 08:01:01 -0500
> > > > > >>
> > > > > >> mvn version 3.0.2
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> public class CompilerMojo extends AbstractCompilerMojo
> > > > > >>
> > > > > >> {
> > > > > >>
> > > > > >> /**
> > > > > >> * @parameter expression="${mojoExecution}"
> > > > > >> */
> > > > > >> @Pa
> 
> 
> 
> -- 
> Sent from my phone
  

Re: Any impediment to a wagon release?

2013-12-29 Thread Tamás Cservenák
I did the last 2.5 one, that had two major problems: 2G file limit and
httpclient 4.x pool pollution problem

As I see, there are 3 issues solved
http://jira.codehaus.org/issues/?jql=project%20%3D%20WAGON%20AND%20fixVersion%20%3D%20%222.6%22%20AND%20status%20%3D%20Closed%20ORDER%20BY%20priority%20DESC


As for me, go for it.


On Sat, Dec 28, 2013 at 2:41 PM, Benson Margulies wrote:

> A user asked for one. I'll do the mechanics if there's nothing
> standing in the way.
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>
>


Re: Plugin phase awareness...

2013-12-29 Thread Stephen Connolly
Are you running the mojo directly in your testing by any chance?

Eg

mvn short-name:goal

As opposed to

mvn phase

Because if the former, then the phase is null as the execution was not
bound to a phase.

I have not used this specific property before, so cannot speak to whether
it works when bound to a phase, but if your test plugin execution is not
bound to a phase then you would not expect to see a non null value

On Sunday, 29 December 2013, Martin Gainty wrote:

> Morning All-
>
>
>
> Even after downloading maven-core 3.1.1 source and re-compiling to new
> maven-core-3.1.1.jar distro
> and forcing maven-core-3.1.1 dependency into maven-surefire-plugin
>
>
> I could not get ${mojoExecution.lifecyclePhase} to display anything other
> than null
>
>
> https://jira.codehaus.org/browse/MNG-
>
>
>
> Ideas?
>
> Martin --
> __
>
>
> Inte förändra och störa denna överföring
>
>
>
>
>
>
>
> From: mgai...@hotmail.com 
> To: dev@maven.apache.org 
> Subject: RE: Plugin phase awareness...
> Date: Wed, 25 Dec 2013 22:40:07 -0500
>
>
>
>
> Wasted an enormous amount of time chasing the exact location of .git
> file.. i guess its a good thing it was Christmas
>
> Thanks Jason!
> Martin Gainty
> __
>
>
>
>
>
> > From: jpye...@pdinc.us
> > To: dev@maven.apache.org
> > Subject: RE: Plugin phase awareness...
> > Date: Wed, 25 Dec 2013 10:52:34 -0500
> >
> > > -Original Message-
> > > From: Martin Gainty
> > > Sent: Wednesday, December 25, 2013 10:40
> > >
> > > bash>git clone
> > > bash>https://github.com/apache/maven/blob/maven-3.1.1/maven-core src
> > > Cloning into 'src'...
> > > fatal: repository
> > > 'https://github.com/apache/maven/blob/maven-3.1.1/maven-core/'
> > > not found
> >
> > It is not like subversion, git clone https://github.com/apache/maven.git
> >
> > The git operation will have to happen from the root of the repository,
> and git
> > hub does not auto redirect git clones to the proper url from the repo
> browser
> > urls.
> >
> > >
> > >
> > >
> > >
> > > > Date: Tue, 24 Dec 2013 18:51:59 -0500
> > > > From: i...@ifedorenko.com
> > > > To: dev@maven.apache.org
> > > > Subject: Re: Plugin phase awareness...
> > > >
> > > >
> > > https://github.com/apache/maven/blob/maven-3.1.1/maven-core/src/main/j
> > > > ava/org/apache/maven/plugin/MojoExecution.java#L160
> > > >
> > > >
> > > > ... and, like I said, the example I pasted elsewhere in this thread
> > > > does work in maven 3.0.5 and 3.1.1.
> > > >
> > > > --
> > > > Regards,
> > > > Igor
> > > >
> > > > On 12/24/2013, 18:01, Martin Gainty wrote:
> > > > > not found in 3.1.1
> > > > >
> > > > >
> > > > >
> > > > > ${user.home}\org\apache\maven\maven-core\3.1.1\jar>javap .\or
> > > > > g\apache\maven\plugin\MojoExecution | grep lifecyclePhase
> > > > >
> > > > >
> > > > > Warning: Binary file .\org\apache\maven\plugin\MojoExecution
> > > > > contains org.apache.maven.plugin.MojoExecution
> > > > >
> > > > >
> > > > > I have 3.1.1 fully operational but I cannt locate the
> > > lifecyclePhase
> > > > > in MojoExecution
> > > > >
> > > > > I *thought* 3.1.1 was latest...does anyone know where the
> > > lifecyclePhase attribute is located?
> > > > >
> > > > >
> > > > >
> > > > > Thanks!
> > > > > Martin
> > > > >
> > > > > __
> > > > > God jul till alla och
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >> From: mgai...@hotmail.com
> > > > >> To: dev@maven.apache.org
> > > > >> Subject: RE: Plugin phase awareness...
> > > > >> Date: Tue, 24 Dec 2013 08:01:01 -0500
> > > > >>
> > > > >> mvn version 3.0.2
> > > > >>
> > > > >>
> > > > >>
> > > > >> public class CompilerMojo extends AbstractCompilerMojo
> > > > >>
> > > > >> {
> > > > >>
> > > > >> /**
> > > > >> * @parameter expression="${mojoExecution}"
> > > > >> */
> > > > >> @Pa



-- 
Sent from my phone


RE: Plugin phase awareness...

2013-12-29 Thread Martin Gainty
Morning All-

 

Even after downloading maven-core 3.1.1 source and re-compiling to new 
maven-core-3.1.1.jar distro
and forcing maven-core-3.1.1 dependency into maven-surefire-plugin

 
I could not get ${mojoExecution.lifecyclePhase} to display anything other than 
null


https://jira.codehaus.org/browse/MNG-

 

Ideas?

Martin --
__ 


Inte förändra och störa denna överföring

  





From: mgai...@hotmail.com
To: dev@maven.apache.org
Subject: RE: Plugin phase awareness...
Date: Wed, 25 Dec 2013 22:40:07 -0500




Wasted an enormous amount of time chasing the exact location of .git file.. i 
guess its a good thing it was Christmas

Thanks Jason!
Martin Gainty 
__ 


  


> From: jpye...@pdinc.us
> To: dev@maven.apache.org
> Subject: RE: Plugin phase awareness...
> Date: Wed, 25 Dec 2013 10:52:34 -0500
> 
> > -Original Message-
> > From: Martin Gainty 
> > Sent: Wednesday, December 25, 2013 10:40
> > 
> > bash>git clone 
> > bash>https://github.com/apache/maven/blob/maven-3.1.1/maven-core src
> > Cloning into 'src'...
> > fatal: repository 
> > 'https://github.com/apache/maven/blob/maven-3.1.1/maven-core/'
> > not found
> 
> It is not like subversion, git clone https://github.com/apache/maven.git
> 
> The git operation will have to happen from the root of the repository, and git
> hub does not auto redirect git clones to the proper url from the repo browser
> urls.
> 
> > 
> > 
> > 
> > 
> > > Date: Tue, 24 Dec 2013 18:51:59 -0500
> > > From: i...@ifedorenko.com
> > > To: dev@maven.apache.org
> > > Subject: Re: Plugin phase awareness...
> > > 
> > > 
> > https://github.com/apache/maven/blob/maven-3.1.1/maven-core/src/main/j
> > > ava/org/apache/maven/plugin/MojoExecution.java#L160
> > > 
> > > 
> > > ... and, like I said, the example I pasted elsewhere in this thread 
> > > does work in maven 3.0.5 and 3.1.1.
> > > 
> > > --
> > > Regards,
> > > Igor
> > > 
> > > On 12/24/2013, 18:01, Martin Gainty wrote:
> > > > not found in 3.1.1
> > > >
> > > >
> > > >
> > > > ${user.home}\org\apache\maven\maven-core\3.1.1\jar>javap .\or 
> > > > g\apache\maven\plugin\MojoExecution | grep lifecyclePhase
> > > >
> > > >
> > > > Warning: Binary file .\org\apache\maven\plugin\MojoExecution 
> > > > contains org.apache.maven.plugin.MojoExecution
> > > >
> > > >
> > > > I have 3.1.1 fully operational but I cannt locate the 
> > lifecyclePhase 
> > > > in MojoExecution
> > > >
> > > > I *thought* 3.1.1 was latest...does anyone know where the 
> > lifecyclePhase attribute is located?
> > > >
> > > >
> > > >
> > > > Thanks!
> > > > Martin
> > > >
> > > > __
> > > > God jul till alla och
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >> From: mgai...@hotmail.com
> > > >> To: dev@maven.apache.org
> > > >> Subject: RE: Plugin phase awareness...
> > > >> Date: Tue, 24 Dec 2013 08:01:01 -0500
> > > >>
> > > >> mvn version 3.0.2
> > > >>
> > > >>
> > > >>
> > > >> public class CompilerMojo extends AbstractCompilerMojo
> > > >>
> > > >> {
> > > >>
> > > >> /**
> > > >> * @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 executionPhase;
> > > >> public String getExecutionPhase() { return executionPhase; }
> > > >>
> > > >>
> > > >> public void execute() throws MojoExecutionException, 
> > > >> CompilationFailureException { 
> > getLog().info("CompilerMojo::execute 
> > > >> LINE 135 Current Execution is "+getExecution()); 
> > > >> getLog().info("CompilerMojo::execute LINE 136 Current Execution 
> > > >> phase is "+getExecutionPhase()); ...
> > > >>
> > > >> }
> > > >>
> > > >> ..
> > > >>
> > > >> }
> > > >>
> > > >> [info] CompilerMojo::execute LINE 135 Current Execution is null 
> > > >> [info] CompilerMojo::execute LINE 136 Current Execution phase is 
> > > >> null
> > > >>
> > > >>
> > > >> i cant seem to get this to work in 3.0.2...let me try 3.11
> > > >>
> > > >>
> > > >>
> > > >> thanks,
> > > >> Martin
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>> Date: Tue, 24 Dec 2013 02:53:06 +0100
> > > >>> Subject: Re: Plugin phase awareness...
> > > >>> From: lennart.jore...@gmail.com
> > > >>> To: dev@maven.apache.org
> > > >>>
> > > >>> Try just injecting the mojoExecution object.
> > > >>> Then invoke the getLifecyclePhase() method in it.
> > > >>>
> > > >>>
> > > >>> 2013/12/24 Martin Gainty 
> > > >>>
> > >  Igor/Tamas
> > >  a quick test
> > > 
> > >  package org.apache.maven.plugin;
> > >  public class Compil