Re: Lightweight maven-releases, or an alternative to the maven-release-plugin

2013-05-02 Thread Michael Hüttermann
Hello, if interested: the topic of lightweight maven releases is discussed in "DevOps for Developers", Apress, Chapter 8. Cheers, Michael > Hello there, > > I. find prepare and perform quite heavyweight my self. After prepare did > build everything successfully, it throws away everything, ju

Re: Lightweight maven-releases, or an alternative to the maven-release-plugin

2013-05-02 Thread Roger Brechbühl
- when speaking about "SNAPSHOTs" we should distinguish between dependencies and what we produce. With a build we produce an artifact which is either a SNAPSHOT or release according to the version in the pom.xml. A dependency resolves either to a SNAPSHOT or a released version of another library. T

Re: Lightweight maven-releases, or an alternative to the maven-release-plugin

2013-05-01 Thread Mirko Friedenhagen
Hello there, I. find prepare and perform quite heavyweight my self. After prepare did build everything successfully, it throws away everything, just tags the source and starts over again during perform. prepare already checks with scm means, that there are no modifications and in my experience ta

Re: Lightweight maven-releases, or an alternative to the maven-release-plugin

2013-05-01 Thread Robert Scholte
Graham, well said. Although the pom.xml is the easiest way to discover the version, it is not the best location, since it would require a commit. The solution must be found in a generated file which will be added to the artifact during packaging. Here you could add a timestamp or revision.

Re: Lightweight maven-releases, or an alternative to the maven-release-plugin

2013-05-01 Thread Graham Leggett
On 30 Apr 2013, at 11:21 PM, Roger Brechbühl wrote: > Maybe somebody is interested in how a release could be built in a more > lightweight and safe way than with the maven-release-plugin. Especially > recommended for nightly releases. > > It's not yet released, but basically fully working: > >

Re: Lightweight maven-releases, or an alternative to the maven-release-plugin

2013-05-01 Thread Roger Brechbühl
Hi Nambi 1. Why does the jar need to be part of maven installation? Why not a plugin? The version given on the command line is passed into the model when it's loaded (model.setVersion(version)). And this is done for all modules when the model is read. When having a plugin I would change the versi

RE: Lightweight maven-releases, or an alternative to the maven-release-plugin

2013-04-30 Thread Sankaran, Nambi
Hi Rotch This sounds quite interesting and I feel it would be useful to a lot of projects. The release-plugin as it is, is not very flexible. Questions 1. Why does the jar need to be part of maven installation? Why not a plugin? 2. Can it generate a version based on some strategy? Looks like th