You can attach the goal to the post-clean phase of clean lifecycle.

One way is you may add a executions element in POM for specific plugin.
For example:

          <plugin>
            <groupId>{UR-plugin}</groupId>
            <artifactId>{UR-plugin}</artifactId>
            <executions>
              <execution>
                <id>{UR-ID}</id>
                    <phase>post-clean</phase>
                <goals>
                  <goal>deep-clean</goal>
                </goals>
              </execution>
            </executions>
          </plugin>

Subir
-----Original Message-----
From: Partha Maitra [mailto:[email protected]]
Sent: Tuesday, May 04, 2010 5:44 PM
To: 'Maven Users List'
Subject: Can we customize maven lifecycle?

Hi,
Can anyone please tell me how do I customize a maven lifecycle?
e.g. Clean Lifecycle has got the following
        pre-clean
        clean
        and post-clean,
 how about I want to perform a deep-clean after this post-clean is
completed? so that when I try the command "mvn clean" the deep-clean
also takes place(deep-clean is just a name for a goal in my example)

Thanks & Regards,
Partha Maitra.

________________________________
SASKEN BUSINESS DISCLAIMER: This message may contain confidential,
proprietary or legally privileged information. In case you are not the
original intended Recipient of the message, you must not, directly or
indirectly, use, disclose, distribute, print, or copy any part of this
message and you are requested to delete it and inform the sender. Any
views expressed in this message are those of the individual sender
unless otherwise stated. Nothing contained in this message shall be
construed as an offer or acceptance of any offer by Sasken Communication
Technologies Limited ("Sasken") unless sent with that express intent and
with due authority of Sasken. Sasken has taken enough precautions to
prevent the spread of viruses. However the company accepts no liability
for any damage caused by any virus transmitted by this email.

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to