Re: Re: Re: useing profiles to control properties to drive version numbers in poms

2012-03-19 Thread Thorsten Heit
Hi, I'm using profiles at work for the sole purpose of deciding what to do with the build artifact, i.e. activating different deployment targets (application servers) for an EAR. I see this as a completely different task where you're simply using Maven as a utility tool. When using

Re: Re: Re: useing profiles to control properties to drive version numbers in poms

2012-03-19 Thread Anders Hammar
We're having lots of projects building at least one EAR, and each EAR is deployed to the same application server(s), but in different flavors: developer (snapshot) build, integration build and/or release build. Using a CI server configured with special jobs doing these deployment tasks would

Re: Re: Re: Re: useing profiles to control properties to drive version numbers in poms

2012-03-19 Thread Thorsten Heit
Hi, When been over this several times on this list. You have to extract the configuration out of the binary. You mustn't have a Maven build that could generate different flavors of an artifact. Which one would you deploy to the repository? Ok, this was a bit misleading by me. With flavors I

RE: useing profiles to control properties to drive version numbers in poms

2012-03-18 Thread Martin Gainty
Chad path of least resistance is to set the version of the project in pom.xml (at top) and then reference project.version e.g. version${project.version}/version HTH Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Re: Re: useing profiles to control properties to drive version numbers in poms

2012-03-18 Thread Thorsten Heit
Hi, Yes, profiles are evil. If you use them for changing / defining _what_ gets built and/or how, yes. If you think you should be using profiles, think again. If you still think they are the solution, please think it through once more. If you still persist, go use Ant. Profiles are simply

Re: Re: useing profiles to control properties to drive version numbers in poms

2012-03-18 Thread Anders Hammar
If you think you should be using profiles, think again. If you still think they are the solution, please think it through once more. If you still persist, go use Ant. Profiles are simply very rarely a good solution. I'm using profiles at work for the sole purpose of deciding what to do with

Re: useing profiles to control properties to drive version numbers in poms

2012-03-18 Thread Ron Wheeler
On 18/03/2012 5:41 PM, Thorsten Heit wrote: Hi, Yes, profiles are evil. If you use them for changing / defining _what_ gets built and/or how, yes. If you think you should be using profiles, think again. If you still think they are the solution, please think it through once more. If you

Re: useing profiles to control properties to drive version numbers in poms

2012-03-18 Thread Ron Wheeler
On 18/03/2012 5:53 PM, Anders Hammar wrote: If you think you should be using profiles, think again. If you still think they are the solution, please think it through once more. If you still persist, go use Ant. Profiles are simply very rarely a good solution. I'm using profiles at work for the

Re: useing profiles to control properties to drive version numbers in poms

2012-03-16 Thread Anders Hammar
Not good. Dependency versions should be deterministic. For the same reason avoid version ranges. /Anders (mobile) Den 16 mar 2012 17.52 skrev chad.da...@emc.com: Does anyone have any experience using a property to control the version numbers in poms? Like, version${myVersion}/version and the

RE: useing profiles to control properties to drive version numbers in poms

2012-03-16 Thread Chad.Davis
Not good. Dependency versions should be deterministic. For the same reason avoid version ranges. That's pretty definitive, and I think I agree on a gut level. Can you articulate any specific issues? I'd appreciate it if you could.

Re: useing profiles to control properties to drive version numbers in poms

2012-03-16 Thread Ron Wheeler
Search the forum for profile. You will see people in all kinds of difficulty and dead-ends caused by trying to use profiles. There are (apparently) some actual uses for profiles but far more cases of misuse. We have never used profiles but from watching the forum for 4+years, my advice is to

Re: useing profiles to control properties to drive version numbers in poms

2012-03-16 Thread Anders Hammar
The thing is that having the possibility of change a dependency version during build time would/could sound as a good thing. BUT, you have to remember that your pom gets deployed to a repo and will be consumed by other people. If the pom does not have pinned downed versions but would change

Re: useing profiles to control properties to drive version numbers in poms

2012-03-16 Thread Anders Hammar
Yes, profiles are evil. If you think you should be using profiles, think again. If you still think they are the solution, please think it through once more. If you still persist, go use Ant. Profiles are simply very rarely a good solution. /Anders On Fri, Mar 16, 2012 at 19:31, Ron Wheeler