Add the Jetty-maven-plugin plug-in configuration to the Pom.xml file for the Web project as follows:
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.4.2.v20170220</version>
<configuration>
<scanIntervalSeconds>1</scanIntervalSeconds>
<!--defines a server-->
<!--
<port>80</port>
<idleTimeout>60000</idleTimeout>
<!--defines a second server-->
<jettyxml>${project.basedir}/profile/dev/jetty.xml,${project.basedir}/profile/dev/jetty-http.xml,${ Project.basedir}/profile/dev/jetty-ssl.xml,${project.basedir}/profile/dev/jetty-https.xml</jettyxml>
</configuration>
</plugin>
This configuration defines two HTTP servers, such as annotations, one defined with the HttpConnector element, and the other is the loaded Jetty-http.xml file definition.
Once the work is done, you can configure the Eclipse Maven run section, as shown in the following figure:
After that, you can run it, as shown in figure:
HTTPS server is also started because it is configured with HTTPS Connector.