« Return to Thread: Open source ivy files project?
> I agree completely and this should be very easy to do... unfortunately IIf it's only to download artifacts, it's very easy. All you need is to
> have zero knowledge of maven. I do have lots of knowledge of XSLT though
> so if someone could walk me through what steps need to be done for a
> <m2resource> tag then I'll be happy to write it up in the XSLT.
download the artifacts using a pattern like this:
[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]
The classifier needs to be provided in the m2resource tag, except for the
main artifact, which has no classifier.
For instance here are the files available for Ivy itself on maven repo:
http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.0.0-beta2/
As you can see there's the default artifact (the jar), an artifact for
'sources' classifier, and one for 'javadoc' classifier. Maybe we should also
be able to specify the ext for each artifact, and also the file path to use
once downloaded (relative to artifacts dir). Maybe something like:
<m2resource groupId="org.apache.ivy" artifactId="ivy" version="2.0.0-beta2">
<artifact ext="jar" tofile="jars/ivy.jar"
sha1="43188890f8eb2a105665d62c4bda4b24703568ee" />
<artifact qualifier="sources" ext="jar" tofile="sources/ivy.zip"
sha1="6ab99abd8a02a961a5054b0359b9ae75f2ae2972" />
<artifact qualifier="javadoc" ext="jar" tofile="javadocs/javadoc.zip"
sha1="6b3cf2877a1c79adb181fa218b99f3b20ceabbe5" />
</m2resource>
Not sure of the exact syntax, but you get the idea.
« Return to Thread: Open source ivy files project?
| Free Forum Powered by Nabble | Forum Help |