docs: public void writePom(File file) throws ProjectException {
          log.debug("Writing pom: {}", file.getPath());
  
          Project copy = this;
          copy.removeProperty( "project.basedir" );
  
          Writer writer;
          try {
              writer = new BufferedWriter(new FileWriter(file));
          } catch (IOException e) {
              throw new ProjectException(e);
          }
  
          MavenXpp3Writer pomWriter = new MavenXpp3Writer();
          try {
              pomWriter.write(writer, copy.mavenModel);
          } catch (IOException e) {
              throw new ProjectException("Failed to write pom", e);
          }
      }