Thanks Wendy, Brian,

I used 'mvn post-site' and that worked just fine. Also, to avoid having
this goal executed more than once for all the sub modules. I moved the
code to execute this goal from the parent pom.xml to the pom.xml of the
last module that gets executed, and that accomplished the needed task.

  Thanks,

       Sameh


-----Original Message-----
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 08, 2008 9:50 PM
To: Maven Users List
Subject: RE: maven does not run code specified in the post-site phase?

Or bind your goal to site since bound plugins always run after the
default bound plugins on the same phase.


-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 08, 2008 6:53 PM
To: Maven Users List
Subject: Re: maven does not run code specified in the post-site phase?

On Thu, May 8, 2008 at 6:29 PM, Tawfik, Sameh E
<[EMAIL PROTECTED]> wrote:

>  I placed the following code in the parent pom.xml file. When I run
"mvn
>  -Dmaven.test.skip=true site", maven executes the code in the pre-site
>  phase, but it never executes the code in the post-site phase?

See:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl
e.html#Lifecycle_Reference
(and scroll down a bit).

The site lifecycle has the following phases:  pre-site, site,
post-site, site-deploy

By typing 'mvn site' you are telling it to run up to and including the
'site' phase.  So nothing bound to the post-site or site-deploy phases
is going to happen.

Type 'mvn post-site' instead and it should work.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to