Hi Fabrizio, thanks for taking the time to evangelize some of the Maven philosophy, event if it's not on a Maven list.
On 9/17/06, Fabrizio Giustina <[email protected]> wrote:
Hi John, On 9/17/06, John Mettraux <[email protected]> wrote: > you should retry now (OpenWFE jars wiped out), we just finished an > upload (without changing the version number). > > I'll read the snapshot-thinggy doc for Maven this week. a simple rule: NEVER replace a jar in the repo if the version is not a *-SNAPSHOT, or you will break every builds that depends on you ;) If the release is not stable just leave the SNAPSHOT in the version, so you can redeploy it and maven will always check for updated jars, also if already available in the local repo.
Is it mandatory for snapshot jars to contain the string "SNAPSHOT" in their names ? Is it simply possible to tag the repository as <snapshot>true</snapshot> in the 'consumer' pom.xml ?
I see you are using maven directly to build and deploy your jars... if so, it's easy: remember that POMs in svn should always have a SNAPSHOT version, and poms with a release version should only be available in svn tags dir. When you plan to release/deploy a new release run release:prepare and then release:perform (guess what: you just can't release twice with the same version number ;) ). When you just want to release an update snapshot simply run mvn deploy instead.
That goes too far for me : svn on sourceforge is well, buggy, so if I put Maven between me and SF's svn, I'll be miserable, it'll be hell.
Another suggestion is to separate the repository used for snapshot and releases (you can configure it in the pom, see the magnolia one) and to always deploy sources along with the jars (very useful for magnolia development, and can be achieved by simply adding the "source:jar" goal before the deploy one: "mvn source:jar deploy"). If you will manage to setup a clean release-only repository for openwfe I could ask to make it directly sync'ed with the maven main repo, WDYT?
I was planning to have a 'snapshot' dir (http://maven.openwfe.org/repo) and to upload 'by request' to ibiblio. It's important to have full releases on ibiblio (imho). Is the 'tag as snapshot repo' sufficient or do I have to name my version SNAPSHOT ? Thanks again and in advance, Maven is great (but I like to be in control), -- John Mettraux -///- http://jmettraux.openwfe.org ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
