Christian Clausen wrote: > 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.
I'm just telling you how things work in maven-b9 and upcoming manen-rc1, so I don't quite understand what you don't agree to :) > 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 rather similar to what I've written further down in my message. I hope things will work this way in maven-new. R. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
