public static void executeFlyway(String targetPath) throws IOException {
		Process p = null;
		InputStream is = null;
		try {
			File dir = new File(targetPath);
//			ProcessBuilder pb = new ProcessBuilder(getMavenHome() + " compile flyway:migrate");
//			pb.directory(dir);
//			pb.redirectError();
//
//			p = pb.start();
			p = Runtime.getRuntime().exec(new String[]{getMavenHome(), "compile", "flyway:migrate"}, null, dir);
			copy(is = p.getInputStream(), System.out);
		} finally {
			if (is != null) {
				is.close();
			}
			if (p != null) {
				p.destroy();
			}
		}
		
	}