I have .war file and I need to do “deploy script”. Is it possible to do this with maven? Can I execute only deploy phase of lifecycle? Or it will be better to use some other instruments for deployment like ant, gant etc.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, you can’t skip phases. The
mvn phase-xcommand always means “run all phases until phase-x, inclusive”. Some plugins, however can detect if there have been changes since their last execution and decide (on their own) not to run — the subsequent build is faster.I’m not sure what exactly you want to achieve — perhaps you could take a look at Maven assembly plugin?