Running Jetty from a custom port through Maven

There are two options:

  • pom.xml:

  • command prompt: mvn -Djetty.port=8090 jetty:run

The thing to remember is the command line value will override the value in pom.xml.

Leave a Reply

Your email address will not be published. Required fields are marked *