130131132133134135136137138139140
File tmpProjectFile = FileUtils.createTempFile( "pom", ".xml", project.getBasedir() ); Writer writer = null; try { writer = WriterFactory.newXmlWriter( tmpProjectFile ); clone.writeOriginalModel( writer ); } finally { IOUtil.close( writer ); }
129130131132133134135136137138139