启动命令:
jetty:run -Djetty.port=8081 -Dmaven.test.skip=true -Pdev
指定端口:8081
跳过测试
使用profile为dev
pom:
<!-- jetty插件 -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<scanIntervalSeconds>3</scanIntervalSeconds>
<contextPath>/media</contextPath>
</configuration>
</plugin>