Gregg pointed me in the right direction. Here is the complete information on how I solved this:1) I added a file called jetty-web.xml to the src / main / webapp / WEB-INF folder. It contained:
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Call name="setAttribute">
<Arg>org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern</Arg>
<Arg>nothing.jar</Arg>
</Call>
</Configure>
Run codePlease note that at the moment I do not need to scan, so I just insert the dummy entry "nothing.jar" in accordance with the template.
2) Edit the Jetty-maven-plugin entry in pom.xml: in the section I added
<contextXml>${basedir}/src/main/webapp/WEB-INF/jetty-web.xml</contextXml>
Run codeNow redistribution occurs in just a couple of seconds.
source
share