code: void generateMavenXml(Definition def, String outputDir)
     {
        try
        {
           FileWriter pomfw = Utils.createFile("pom.xml", outputDir);
           PomXmlGen pxGen = new PomXmlGen();
           pxGen.generate(def, pomfw);
           pomfw.close();
        }
        catch (IOException ioe)
        {
           ioe.printStackTrace();
        }
     }
docs: generate ant build.xml
  
  @param def       Definition
  @param outputDir output directory