bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java
public static void writeModelToPOM(Model model, File pom, Log logger) throws IOException {
		FileOutputStream fos = new FileOutputStream(pom);
		
		new MavenXpp3Writer().write(fos, model);

		try {
			fos.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
public static void writeModelToPOM(Model model, File pom, Log logger) throws IOException {
		FileOutputStream fos = new FileOutputStream(pom);
		
		new MavenXpp3Writer().write(fos, model);

		try {
			fos.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
Write a Maven {@link Model} object to a POM file.

@param model
@param pom
@param logger
@throws IOException