[udig-devel] maven ant tasks
Jody Garnett
jgarnett at refractions.net
Wed Apr 9 14:13:22 PDT 2008
I am experimenting with a org.apache.maven-ant-tasks plug-in of my own
devising; that advertises the traditional maven-ant-task to the eclipse
ant runner. I am using org.eclipse.ant.core as an example; and so far
appear successful.
If this works for me I will need to:
1) update the eclipse extras to include this org.apache.maven-ant-tasks
plugin so everyone can have it
2) update copy.xml to use the
For more information:
- http://maven.apache.org/ant-tasks.html
The rough idea is to make copy.xml look something like:
<artifact:remoteRepository id="remote.repository" url="http://lists.refractions.net/m2" />
<artifact:dependencies pathId="dependency.classpath">
<remoteRepository refid="remote.repository" />
<dependency groupId="org.geotools" artifactId="gt2-main"
version="2.5-SNAPSHOT"/>
...
</artifact:dependencies>
<copy todir="${project}/lib">
<fileset refid="dependency.fileset" />
<mapper classpathref="maven-ant-tasks.classpath" classname="org.apache.maven.artifact.ant.VersionMapper"
from="${dependency.versions}" to="flatten" />
</copy>
The VersionMapper thing removes the 2.5-SNAPSHOT from the copied jars.
As anyone tried this stuff recently? I hope it is a worthwhile goal ...
Jody
More information about the udig-devel
mailing list