java—使用maven jetty插件在jetty上以调试模式运行webapp,最终在intellij中生成成功(应用程序应以调试模式启动)

inkz8wg9  于 2021-07-12  发布在  Java
关注(0)|答案(0)|浏览(236)

当我尝试在调试模式下运行我的web应用时(通过遵循intellij中的debug web app,maven构建的webapp,jetty运行) jetty 使用 maven jetty plug-in ,而不是在调试模式下运行应用程序
步骤:
右键单击jetty:run and 从以下给定图片的上下文菜单中选择“调试”
当我只是做 jetty:run ,应用程序正在启动并按预期运行,但当我尝试在调试模式下运行时,它以生成成功和断开连接结束,请参见下面的日志。

"C:\Program Files\Java\jdk1.8.0_211\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:54346,suspend=y,server=n -Dmaven.multiModuleProjectDirectory=D:\my-company\code\my-proj\module1\some-webapp "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1.3\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1.3\plugins\maven\lib\maven3\bin\m2.conf" -javaagent:C:\Users\shiva\.IdeaIC2019.1\system\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1.3\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1.3\lib\idea_rt.jar" org.codehaus.classworlds.Launcher -Didea.version2019.1.3 -DskipTests=true jetty:start -P dev,!test,!app,!it,!ux,!repositories,!meta-tar,!dev-auto-build,!coverage

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building some-webapp 19.11.1.7
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> jetty-maven-plugin:9.4.19.v20190610:start (default-cli) > validate @ some-webapp >>>
[INFO] 
[INFO] <<< jetty-maven-plugin:9.4.19.v20190610:start (default-cli) < validate @ some-webapp <<<
[INFO] 
[INFO] --- jetty-maven-plugin:9.4.19.v20190610:start (default-cli) @ some-webapp ---
.....**some more logs here**----
[INFO] Started ServerConnector@fc35cc{HTTP/1.1,[http/1.1]}{0.0.0.0:8081}
[INFO] Started @53671ms
[INFO] Started Jetty Server
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.219 s
[INFO] Finished at: 2020-02-13T23:33:57+05:30

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题