Host host = tomcat.getHost();
host.setDeployOnStartup(false);
host.setAutoDeploy(false);
host.setConfigClass(TomcatContextConfig.class.getName());
TomcatHostConfig hostConfig = new TomcatHostConfig();
host.addLifecycleListener(hostConfig);
tomcat.start();
File warTarget = new File(webappDir, "/wicket-examples.war");
InputStream is = new URL("mvn:org.apache.wicket/wicket-examples/1.5.3/war").openStream();
FileOutputStream os = new FileOutputStream(warTarget);