maven jetty运行命令

1、先运行build.xml

<?xml version="1.0" encoding="UTF-8"?>

<project name="app" default="compiler">
<target name="compiler">
<property name="dir.compiler.home" location=".." />
<exec executable="cmd" failonerror="true" dir="${dir.compiler.home}">
<arg line="/c mvn clean install -Dmaven.test.skip=true" />
</exec>
</target>
</project>

2、然后jetty:run-war -Djetty:port=9999

 每次修改文件之后,都要运行上面的1,2步骤才能生效

原文地址:https://www.cnblogs.com/usual2013blog/p/4432839.html