deploy / undeploy are just examples, basically I should be able to add anything outside regular lifecycle the way ANT targets work
Thanks, Renuka Kale Desk : +91 20 6641 6341 Cell : +91 9822824443 Anders Hammar <[email protected]> Sent by: [email protected] 08/28/2009 12:31 PM Please respond to "Maven Users List" <[email protected]> To Maven Users List <[email protected]> cc Subject Re: maven commandline I guess you could use profiles for that. However, what I'm thinking is that you might be trying to force a ant behavior into Maven and by doing so missing the idea behind maven. What is that you really are trying to do? You want to deploy to a server and undeploy from that server? /Anders On Fri, Aug 28, 2009 at 08:43, <[email protected]> wrote: > Hi, > > I am newbie to MAVEN. However I have knowledge about Ant. > > In ant we can call various targets from command line saying "ant > myserver.deploy", "ant myserver.undeploy" etc. > > I want similar behaviour with Maven, that means I should be entering on > command line something like this -- > "mvn myserver.deploy", "mvn myserver.undeploy" etc. > Basically, I need to call corrosponding ANT tasks from maven using > maven.antrun plugin, based on user input. > > Anyone has used similar feature? > > Thanks in advance, > > Renuka Kale > ********************************************************************** > This e-mail transmission and any attachments that accompany it may > contain information that is privileged, confidential or otherwise > exempt from disclosure under applicable law and is intended solely for > the use of the individual(s) to whom it was intended to be addressed. > If you have received this e-mail by mistake, or you are not the > intended recipient, any disclosure, dissemination, distribution, > copying or other use or retention of this communication or its > substance is prohibited. If you have received this communication in > error, please immediately reply to the author via e-mail that you > received this message by mistake and also permanently delete the > original and all copies of this e-mail and any attachments from your > computer. Thank you. > ********************************************************************** > To: Maven Users List <[email protected]> cc: From: [email protected]
