From e3ab1e67f75484c837c7c568681d884dfed5642d Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Mon, 31 Jul 2023 15:20:14 -0700 Subject: [PATCH] Add support for WebSocket (#524) --- src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java b/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java index 7e8844f8ba..c4039d0f1c 100644 --- a/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java +++ b/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java @@ -93,6 +93,7 @@ import org.eclipse.jetty.util.security.Password; import org.eclipse.jetty.webapp.WebAppClassLoader; import org.eclipse.jetty.webapp.WebAppContext; +import org.eclipse.jetty.websocket.server.config.JettyWebSocketServletContainerInitializer; import org.twdata.maven.mojoexecutor.MojoExecutor; import sun.misc.Unsafe; @@ -624,6 +625,7 @@ public void configureWebApp() throws Exception { } } } + JettyWebSocketServletContainerInitializer.configure(getWebAppConfig(), null); HashLoginService hashLoginService = (new HashLoginService("default")); UserStore userStore = new UserStore(); hashLoginService.setUserStore(userStore);