In my ant build, I am using maven-ant-tasks to pull dependencies for my project. The build is relatively complicated and moves/manipulates different artifacts in different places. To make my life easier, I want to remove the maven version labels from my dependencies within my ant script. The maven-ant documentation says that we can use the versionsId property of the dependencies task to accomplish this but I am not sure how to do it in ant.
The relevant part of my build is
<artifact:pom id="mypom" file="pom.xml"/>
<artifact:dependencies pathId="dep.classpath" filesetId="dep.fileset" pomRefId="mypom" useScope="compile" settingsFile="${maven.home}\conf\settings.xml" versionsId="dep.versions"/>
<copy todir="${lib.dir}" flatten="true" overwrite="true">
<fileset refid="${dep.fileset}"/>
</copy>
After this call, the dep.versions variable holds a semi-colon separated list of all the version labels. However, I'm not sure how to remove labels in a nice/clean way.
Thanks