Quoting Rafal Krzewski <[EMAIL PROTECTED]>: > Moretti, Luciano (MED) wrote: > > So how does the Snapshot resolving determine what is the latest version > > in the online repositories? > > AFAIK, you can have only one SNAPSHOT version per artifact. This means > that if you are developing two branches of your project in paralell, > and want to have SNAPSHOT versions for both of the branches, you need > to put the name of the branch into the artifact name: > > artifactId: myproject-1.0 > versions: 1.0 1.1 SNAPSHOT (SNAPSHOT presumably is 1.2-dev) >
I don't agree. The artifact id should be constant, and snapshot versions just end with "SNAPSHOT". In a development branch, versions should be named x.y-SNAPSHOT (development towards x.y.0.) In a production branch, versions should be x.y.z plus maybe x.y-SNAPSHOT. Examples: artifactId: myproject versions: In development branch: 1.0-SNAPSHOT, 1.1-SNAPSHOT In 1.0 branch: 1.0.0, 1.0.1, 1.0.2, ..., 1.0-SNAPSHOT In 1.1 branch: 1.1.0, 1.1.1, 1.1.2, ..., 1.1-SNAPSHOT When the 1.0 branch is created, the version of the development branch is changed to 1.1-SNAPSHOT, and the version of the 1.0 branch is changed to 1.0.0. This is just my opinion which is influenced by various discussions on this list. I have not been able to find any written policies concerning how to version and when to change versions when branching and releasing. - Christian --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]