How to write (or overwrite) the following contents:
      <dependencies>
   <dependency>
    <groupId>ged.eprom</groupId>
    <artifactId>epromx</artifactId>
    <version>${version.to.set}</version>
    <classifier>stubjava</classifier>
   </dependency>
  </dependencies>
into file called pom.xml in the current directory.
I have tried the ant script:
     <echo file="pom.xml">
  <dependencies>
   <dependency>
    <groupId>ged.eprom</groupId>
    <artifactId>epromx</artifactId>
    <version>${version.to.set}</version>
    <classifier>stubjava</classifier>
   </dependency>
  </dependencies>
 </echo>
But I obtained the error message:
echo doesn't support the nested "dependencies" element.