The maven project uses jetty to run the error message.

the error report is as follows:
[ERROR] Failed to execute goal org.mortbay.jetty:jetty-maven-plugin:8.1.16.v20140903:run (default-cli) on project tccglxt4j: Failure: Address already in use: bind-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the-e switch.
[ERROR] Re-run Maven using the-X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,) Please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confl.

prompt that the address is occupied, whether to change the port like Tomcat, or how to restart jetty,? this is the first time a novice uses jetty, to show the way.

Feb.26,2021

two ways
mvn jetty:run-Djetty.http.port=9999

<build>
  <plugins>
    <plugin>
      <groupId>org.eclipse.jetty</groupId>
      <artifactId>jetty-maven-plugin</artifactId>
      <version>9.2.1.v20140609</version>
      <configuration>
        <httpConnector>
          <!--host>localhost</host-->
          <port>9999</port>
        </httpConnector>
      </configuration>
    </plugin>
  </plugins>
</build>

you can modify the port, or you can kill the default port and restart it.

Menu