mvn clean deploy -P PROD
What does this code do?
mvn jetty:run
I have a war file, do i need to run this deploy code too… i am bit confused.
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.
I’d advise you to read the Deploy plugin documentation, ditto for the Jetty one.
From what I can see,
mvn clean deploycleans your project (suppresses compiled files), and then compiles and deploy it.mvn jetty:runlaunches the jetty server.If you’re completely new to Maven, it’s a build system, to help you manage your dependencies and your application lifecycle. You can read more about it on the Maven site.