I don't think it is arbitary. Where you deploy your artifacts TO, I think should be fixed. I think that is the intent. It is a one off thing that is applicable to the build at hand and isn't something you will want to try and reproduce at a later date (like building from a tag).
In this case it is good to know that if you run a mvn deploy, you'll know exactly where the artifact will go. Using it as a property or variable in this case I think isn't a good thing. Think of this way. You want to have complete control over the artifacts that your build produces. Something fixed... predicatable. The artifacts that are produced by some other project that you need as depedendencies; you should have control over where they will be found and that may change over time. These are thus not fixed. But that is my view. Fill your boots if you wish to define it as a property ;-). > -----Original Message----- > From: Haszlakiewicz, Eric [mailto:ehas...@transunion.com] > Sent: Monday, October 04, 2010 3:24 PM > To: Maven Users List > Subject: RE: Can't specify distributionManagement in settings.xml > > >-----Original Message----- > >From: Thiessen, Todd (Todd) [mailto:tthies...@avaya.com] > > > >Hehe. Not so sure I'd say "wrong", but definitely unnecessary. > > > >Why are you opposed to putting this information in a the distribution > >management section of a parent pom? > > See the email I wrote in the "Company-wide settings" thread (Message-ID: > <9d29fd18cbd74a478cba86e6ef6dbad40590a...@chi4evs04.corp.transunion.com> > ). > > If you put this in a parent pom, it becomes very hard to change it, and > this feels like arbitrary, mutable, local configuration that shouldn't > get hard coded into the builds. > > Phillip's idea of using a property sounds pretty useful to me. (thanks!) > > eric > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org