I publish milestone and release status artifacts to the same Ivysvn
repository using the ivy buildnumber feature. Below is the milestone ant
task I use (note that the release task is identical, but has a "release"
status):
<target name="milestone" depends="jar" description="--> publish this
project in the blue ivy subversion repository">
<ivy:info file="ivy.xml"/>
<ivy:buildnumber
organisation="${ivy.organisation}"
module="${ivy.module}"
revision="1.0." defaultBuildNumber="1"/>
<ivy:publish artifactspattern="${build.dir}/[artifact].[ext]"
resolver="shared"
pubrevision="${ivy.new.revision}"
status="milestone"/>
</target>
The result publishing with these tasks is a new directory for reach release
in the subversion repos:
\\subversion\ivy\foo.bar\coreTools
\1.0.1
\1.0.2
\LATEST
inside of each of the versioned directories is the artifact and associated
ivy meta files e.g.
coreTools-1.0.1.jar
ivy-1.01.xml
...
the LATEST directory has all the released jars and metadata:
coreTools-1.0.1.jar
ivy-1.01.xml
coreTools.1.0.2.jar
ivy-1.02.xml
...
This seems odd, I thought that LATEST directory would have just the last
published jar and metadata i.e. coreTools-1.0.2.jar
Also, when I try to resolve the latest.milestone or latest.release for
coreTools.jar from a different project, I get the following error:
[ivy:retrieve] No resource found at
svn://subversion/ivy/foo.bar/coreTools/LATEST/ivy-LATEST.xml, returning
default resource
So it wants coreTools-LATEST.jar instead of coreTools-1.0.2.jar
So what is the expected behavior? Should the LATEST directory only have the
last released artifact? And if the artifacts are in the LATEST directory,
why would it be trying to reference coreTools-LATEST.jar?
also, here is my ivysvn resolver:
<svn name="shared" userName="${svn.user.name}"
userPassword="${svn.user.password}" repositoryRoot="svn://subversion/ivy/">
<ivy pattern=
"[organisation]/[module]/[revision]/ivy-[revision].xml"/>
<artifact
pattern="[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
</svn>
-----
Buzzterrier
http://buzzterrier.blogspot.com/ View my blog: Ordinary Average Developer...
--
View this message in context:
http://www.nabble.com/problem-resolving-%22latest%22-artifact-tp20274624p20274624.html
Sent from the ivy-user mailing list archive at Nabble.com.