jetty.bat 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. @echo off
  2. echo [INFO] Use maven jetty-plugin run the project.
  3. cd %~dp0
  4. cd ..
  5. call mvn compile -o -e
  6. echo --------------------- Set Jrebel ---------------------
  7. set REBEL_HOME=.\bin
  8. set REBEL_CLASS_PATH=.\target\classes
  9. set REBEL_RESOURCES_PATH=.\src\main\webapp
  10. set MAVEN_OPTS=%MAVEN_OPTS% -javaagent:%REBEL_HOME%\jrebel.jar -noverify -Drebel.spring_plugin=true -Drebel.hibernate_plugin=true
  11. set MAVEN_OPTS=%MAVEN_OPTS% -Drebel.dirs=%REBEL_CLASS_PATH%
  12. echo %MAVEN_OPTS%
  13. echo --------------------- Set Jmxremote ---------------------
  14. set JMX_OPTS=
  15. set JMX_OPTS=%JMX_OPTS% -Dcom.sun.management.jmxremote=true
  16. set JMX_OPTS=%JMX_OPTS% -Dcom.sun.management.jmxremote.port=8099
  17. set JMX_OPTS=%JMX_OPTS% -Dcom.sun.management.jmxremote.ssl=false
  18. set JMX_OPTS=%JMX_OPTS% -Dcom.sun.management.jmxremote.authenticate=false
  19. echo %JMX_OPTS%
  20. echo --------------------- Set Maven ---------------------
  21. set MAVEN_OPTS=%JMX_OPTS% %MAVEN_OPTS% -XX:MaxPermSize=128m
  22. rem set MAVEN_OPTS=%MAVEN_OPTS% -XX:MaxPermSize=128m
  23. echo %MAVEN_OPTS%
  24. echo --------------------- RUN ---------------------
  25. call mvn -Djetty.port=9091 jetty:run -Dmaven.test.skip=true
  26. cd bin
  27. pause