+1. I guess it's OSGi related. Though I don't do that anymore, since we don't do OSGi anymore too, I've already done that some years ago. In fact, I guess this was because it was not totally clear that Maven suffix had to be -SNAPSHOT and not SNAPSHOT only.
At that time, we were trying to have an exact and simpler matching between osgi versionning and maven one (then using bnd, felix-plugin & so on). For the record, here's the versionning grammar for OSGi: version::=major(’.’minor(’.’micro(’.’qualifier)?)?)? major::=digit+ minor::=digit+ micro::=digit+ qualifier::=(alpha|digit|’_’|’-’)+ digit::=[0..9] alpha::=[a..zA..Z] So, we first decided it would be something like 1.2.3 for releases and 1.2.3-SNAPSHOT while being snapshots. But as the OSGi grammar is quite strict, 1.2.3-SNAPSHOT isn't valid. So we ended up using 1.2.3.SNAPSHOT which were valid with OSGi and seemed to go partially well with Maven. After going through different types of problems (with archiva for example: http://jira.codehaus.org/browse/MRM-837), we reverted to using -SNAPSHOT and all went fine then. To sum up, though I might be wrong, I don't think using .SNAPHOT could really be a requirement for someone. But maybe a doc page is missing somewhere to help people understand and correctly map their versionning between maven and OSGi. I guess the work done & being done in tycho (and m2e) unveiled a lot of cases in this field. I'm sure sonatype already have a ton of advice or best practices to handle this mapping as good as possible? HTH. Cheers 2010/12/10 David Jencks <david_jen...@yahoo.com> > I think I've seen some projects, although I don't recall where, that use > .SNAPSHOT because then you get legal osgi bundle versions in require-bundle > instructions in the maven-bundle-plugin. Presumably this could be fixed in > the maven-bundle-plugin since it already converts -SNAPSHOT to .SNAPSHOT > when generating the bundle's own osgi version. > > david jencks > > On Dec 10, 2010, at 9:18 AM, Benjamin Bentmann wrote: > > > Hi, > > > > as part of MNG-4893 [0] an inconsistency in the way a version string is > treated as a snapshot or release was detected. In short, the issue is about > what suffix exactly marks a snapshot version. > > > > The current intention is to revise the logic such that the suffix > "-SNAPSHOT" (note the leading hyphen) and not just "SNAPSHOT" is required to > denote a snapshot. > > > > This mail is meant as a heads up for users that unintentionally use > irregular SNAPSHOT versioning and allow them to adjust their builds. If > changing the builds to use "-SNAPSHOT" isn't possible, we would like to hear > the technical reasons for this. > > > > Thanks > > > > > > Benjamin > > > > > > [0] http://jira.codehaus.org/browse/MNG-4893 > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > > For additional commands, e-mail: dev-h...@maven.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org > > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !