1. Are you saying to check in the converted POM with resolved snapshots, and then tag using the snapshot timestamp as the name of the tag?
2. Or, are you saying to convert snapshots, then snapshot the current project (which stores the converted POM in the repo), then tag the current project including the unresolved snapshot version of the POM, with the name of the tag being the same as the snapshot timestamp?
If you are saying #2, how can I automate the retrieval of the POM from the repository? I could maybe somehow programatically retrieve the correct converted POM from the repository based on the value of a tag. However, this would have to happen before maven starts up, since it is already using the POM by this point.
Am I missing something obvious?
Thanks, Chad
Jason van Zyl wrote:
In order to reliably reproduce your snapshots you need to indicate that within your SCM. Branches in CVS are expensive but all you need to do is tag. In other SCMs like Subversion tags and branches are cheap. Now what to use as a tag I would suggest using the timestamp generated by the production of a snapshot for each project. This is something we are trying to deal with in Continuum so we're trying to arrive at a best practice with respect to Maven. You may have to do some manual tinkering but I think using the snapshot identifier as a tag name would be best as the artifact itself carries with it, by way of its name, the necessary information to extract the corresponding sources from your SCM. The snapshot identifier also clearly tells you when it was the snapshot was produced as opposed to some other arbitrary, site local, tagging convention which may not incorporate the date.
This is the approach I'm using with Continnum, which Trygve and I are currently working on.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
