scanner.setScanPeriod(1000);
VFS vfs = VFS.getVFS(root.toURI());
File archive = generateArchive(deployDir);
VirtualFile archiveVF = vfs.getChild("deploy/"+archive.getName());
VFSDeployment vfsd = VFSDeploymentFactory.getInstance().createVFSDeployment(archiveVF);
repository.addDeployment(archiveVF.toURI().toString(), vfsd, DeploymentPhase.APPLICATION);
getLog().debug("Waiting for 10 scans...");
scanner.start();
while(scanner.getScanCount() < 10)