Here I am going to show how to change jetty server running port. Jetty server default running port is 8080.
Port with Maven:
- Command line: For starting jetty server we are using mvn jetty:run command. We can change the port jetty server running by passing run time argument to it.
- Using pom.xml
mvn -Djetty.port=80 jetty:run
By changing jetty plugin system properties as below, you can change the jetty running port.
org.mortbay.jetty maven-jetty-plugin 9966 foo jetty.port 80






