public static void installPackage(String configFile) throws JsonParseException, JsonMappingException, IOException {
		ObjectMapper mapper = new ObjectMapper();

		List<InternalLib> libs = mapper.readValue(
				new File(configFile),
				TypeFactory.defaultInstance().constructCollectionType(
						List.class, InternalLib.class));
		
		Process p = null;
		InputStream is = null;
		try {
			for (int i = 0; i < libs.size(); i++) {
				InternalLib lib = libs.get(i);
				p = Runtime.getRuntime().exec(getMavenHome() + " install:install-file -DpomFile=" + lib.getPomFile()
								+ " -Dfile=" + lib.getFile());
				copy(is = p.getInputStream(), System.out);
			}
		} finally {
			if (is != null) {
				is.close();
			}
			
			if (p != null) {
				p.destroy();
			}
		}

	}