You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Robert Langridge <La...@cpw.co.uk> on 2007/01/09 09:59:50 UTC

[m2] Dependency Resolution Question for report writing.

Hi All,

I have written a couple of report plugins to date but I am currently
stuck. I would like to ensure that the 'package' lifecycle is called
before my report plugin. I've tried defining
"@requiresDependencyResolution package" but this doesn't appear to work.

I know it is possible to call a main lifecycle phase within the site
lifecycle because the cobatura test coverage calls 'test' before it
generates it's report.

Any thoughts?

Cheers!

Rob Langridge 
 



This communication together with any attachments transmitted with it ("this E-Mail") is intended only for the use of the addressee and may contain information which is privileged and confidential.  If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited.  Addressees should check this E-mail for viruses.  The Company makes no representations as regards the absence of viruses in this E-Mail.  If you have received this E-Mail in error please notify our IT Service Desk immediately by e-mail at postmaster@cpw.co.uk  Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it.

Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company.  Nothing in this E-Mail shall bind the Company in any contract or obligation.

For the purposes of this E-Mail "the Company" means The Carphone Warehouse Group Plc and/or any of its subsidiaries.

Please feel free to visit our website:  http:// www.carphonewarehouse.com or http://www.phonehouse.com

The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS


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


Re: [m2] Dependency Resolution Question for report writing.

Posted by Mark Hobson <ma...@gmail.com>.
On 09/01/07, Robert Langridge <La...@cpw.co.uk> wrote:
>
> Hi All,
>
> I have written a couple of report plugins to date but I am currently
> stuck. I would like to ensure that the 'package' lifecycle is called
> before my report plugin. I've tried defining
> "@requiresDependencyResolution package" but this doesn't appear to work.
>
> I know it is possible to call a main lifecycle phase within the site
> lifecycle because the cobatura test coverage calls 'test' before it
> generates it's report.

Use @execute phase="package" on your mojo.  See:
http://maven.apache.org/developers/mojo-api-specification.html

Mark

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