Reputation: 15044
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.
Upvotes: 0
Views: 378
Reputation: 108959
clean deploy
I suggest you read up on the Maven Build Lifecycle to get full details on these.
-P PROD
This runs the build under the PROD
profile; presumably it is your production build.
Upvotes: 1
Reputation: 11669
I'd advise you to read the Deploy plugin documentation, ditto for the Jetty one.
From what I can see, mvn clean deploy
cleans your project (suppresses compiled files), and then compiles and deploy it. mvn jetty:run
launches 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.
Upvotes: 2