Pages

Showing posts with label Jetty. Show all posts
Showing posts with label Jetty. Show all posts

Thursday, December 27, 2012

mvn jetty:run port

To start the jetty server in a different port than 8080 we can use this command.

mvn -Djetty.port=9999 jetty:run

Friday, April 27, 2012

Run jetty on a specific port using Gradle

I usually start jetty using Gradle build file as given below, but it will run it on HTTP port 8080
gradle jettyRun

But to specify user defined port use -DhttpPort as given below.
gradle jettyRun -DhttpPort=9999

Know more.