RE: Logging Plugin Version Without Debug -X Mode

2009-06-26 Thread Mohan KR
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.ma...@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 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.ma...@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-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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


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



Re: Logging Plugin Version Without Debug -X Mode

2009-06-26 Thread Christiaan Veerman
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 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.ma...@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-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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



RE: Logging Plugin Version Without Debug -X Mode

2009-06-25 Thread Mohan KR
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.ma...@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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


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



RE: Logging Plugin Version Without Debug -X Mode

2009-06-25 Thread Todd Thiessen
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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Logging Plugin Version Without Debug -X Mode

2009-06-25 Thread Christiaan Veerman
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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org