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>
to a file named pom.xml in the current directory.
I tried 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 got an error message:
echo doesn't support the nested "dependencies" element.
source share