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 be694d037..e0e73b363 100644 --- a/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java +++ b/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java @@ -560,6 +560,7 @@ public void checkPomConfiguration() throws MojoExecutionException { public void finishConfigurationBeforeStart() throws Exception { super.finishConfigurationBeforeStart(); WebAppContext wac = getWebAppConfig(); + wac.setAttribute("org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern", ".*/classes/.*"); // to allow the development environment to run multiple "mvn hpi:run" with different port, // use different session cookie names. Otherwise they can mix up. See // http://stackoverflow.com/questions/1612177/are-http-cookies-port-specific