if (parent == null) {
parent = DeployMojo.class.getClassLoader();
}
List<ClassLoader> loaders = new ArrayList<ClassLoader>();
loaders.add(wagon.getClass().getClassLoader());
ChainingClassLoader loader = new ChainingClassLoader(parent, loaders);
Class<?> scpWagonClass = null;
try {
scpWagonClass = ClassUtils.getClass(loader, "org.apache.maven.wagon.providers.ssh.jsch.ScpWagon");
} catch (ClassNotFoundException e) {