change jetty running port

connectors Connector[]-

List of connectors to use. If none are configured then the default is a single SelectChannelConnector at port 8080. You can override this default port number by using the system property jetty.port on the command line, eg: mvn -Djetty.port=9999 jetty:run

mvn clean compile package install -Djetty.port=8079 jetty:run

原文地址:https://www.cnblogs.com/lexus/p/2329501.html