code: 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();
  		}
  	}
docs: Write a Maven {@link Model} object to a POM file.
  
  @param model
  @param pom
  @param logger
  @throws IOException