<!-- jetty启动插件 -->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.4.8.v20171121</version>
<configuration>
<httpConnector>
<port>80</port><!-- 端口号,非必填 -->
</httpConnector>
<path>/</path><!-- 根路径,非必填 -->
</configuration>
</plugin>
构建的时候填写 jetty:run
即可