You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Christiaan Veerman <ch...@gmail.com> on 2009/06/25 22:44:13 UTC
Logging Plugin Version Without Debug -X Mode
Hello:
I am trying to find how to log the plugin version when running my plugin.
The reason I ask is that my plugin version is not explicitly set so
maven will bring down a new version with the default daily interval
(hopefully).
The question I have is how can I get the plugin version currently
running inside the mvn reaction without running in debug mode -X.
Any help is greatly appreciated.
Cheers,
Christiaan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Logging Plugin Version Without Debug -X Mode
Posted by Todd Thiessen <th...@nortel.com>.
Couldn't you use a SNAPSHOT version to do this?
> The reason I ask is that my plugin version is not explicitly
> set so maven will bring down a new version with the default
> daily interval (hopefully).
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Logging Plugin Version Without Debug -X Mode
Posted by Mohan KR <km...@gmail.com>.
Hi, my mail client looks like messed up the formatting. Also I am assuming
that you do
have the maven-plugin-plugin configured, right?
/**
* @parameter expression="${plugin.version}"
*
*/
private String pluginVersion;
Notice the "quotes" around the expression. I have been using this for my own
plugin and
it does work..
Thanks,
mohan kr
-----Original Message-----
From: Christiaan Veerman [mailto:christiaan.veerman.maven@gmail.com]
Sent: Friday, June 26, 2009 12:36 PM
To: Maven Users List
Subject: Re: Logging Plugin Version Without Debug -X Mode
When I try:
> /**
> * @parameter expression=${plugin.version}
> */
> private String pluginVersion;
The resulting string is null...
On Thu, Jun 25, 2009 at 9:04 PM, Mohan KR<km...@gmail.com> wrote:
> Why don't you inject a parameter with expression ${plugin.version} in the
> Mojo and
> use the info level to log it? Don't know if that's what you are asking...
>
> /**
> * @parameter expression=${plugin.version}
> */
> private String pluginVersion;
> ..
>
> Thanks,
> mohan kr
>
> -----Original Message-----
> From: Christiaan Veerman [mailto:christiaan.veerman.maven@gmail.com]
> Sent: Thursday, June 25, 2009 3:44 PM
> To: users@maven.apache.org
> Subject: Logging Plugin Version Without Debug -X Mode
>
> Hello:
>
> I am trying to find how to log the plugin version when running my plugin.
>
> The reason I ask is that my plugin version is not explicitly set so
> maven will bring down a new version with the default daily interval
> (hopefully).
>
> The question I have is how can I get the plugin version currently
> running inside the mvn reaction without running in debug mode -X.
>
> Any help is greatly appreciated.
>
> Cheers,
>
> Christiaan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Logging Plugin Version Without Debug -X Mode
Posted by Christiaan Veerman <ch...@gmail.com>.
When I try:
> /**
> * @parameter expression=${plugin.version}
> */
> private String pluginVersion;
The resulting string is null...
On Thu, Jun 25, 2009 at 9:04 PM, Mohan KR<km...@gmail.com> wrote:
> Why don't you inject a parameter with expression ${plugin.version} in the
> Mojo and
> use the info level to log it? Don't know if that's what you are asking...
>
> /**
> * @parameter expression=${plugin.version}
> */
> private String pluginVersion;
> ..
>
> Thanks,
> mohan kr
>
> -----Original Message-----
> From: Christiaan Veerman [mailto:christiaan.veerman.maven@gmail.com]
> Sent: Thursday, June 25, 2009 3:44 PM
> To: users@maven.apache.org
> Subject: Logging Plugin Version Without Debug -X Mode
>
> Hello:
>
> I am trying to find how to log the plugin version when running my plugin.
>
> The reason I ask is that my plugin version is not explicitly set so
> maven will bring down a new version with the default daily interval
> (hopefully).
>
> The question I have is how can I get the plugin version currently
> running inside the mvn reaction without running in debug mode -X.
>
> Any help is greatly appreciated.
>
> Cheers,
>
> Christiaan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Logging Plugin Version Without Debug -X Mode
Posted by Mohan KR <km...@gmail.com>.
Why don't you inject a parameter with expression ${plugin.version} in the
Mojo and
use the info level to log it? Don't know if that's what you are asking...
/**
* @parameter expression=${plugin.version}
*/
private String pluginVersion;
..
Thanks,
mohan kr
-----Original Message-----
From: Christiaan Veerman [mailto:christiaan.veerman.maven@gmail.com]
Sent: Thursday, June 25, 2009 3:44 PM
To: users@maven.apache.org
Subject: Logging Plugin Version Without Debug -X Mode
Hello:
I am trying to find how to log the plugin version when running my plugin.
The reason I ask is that my plugin version is not explicitly set so
maven will bring down a new version with the default daily interval
(hopefully).
The question I have is how can I get the plugin version currently
running inside the mvn reaction without running in debug mode -X.
Any help is greatly appreciated.
Cheers,
Christiaan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org