Thanks Wayne, The nature of my problem is that I am attempting to integrate two different builds processes with the first build generating a properties file to modify the second maven build.
The current solution is to use scripts to pass in the values on the commandline to the maven build. I'm not terribly fond of this approach because it means some of the work is being done outside of maven and requires an environment capable of running sh files (yes we could create a corresponding .bat file). Unfortunately, as I understand it, this continues to be our best option because we are altering build properties which are read before plugin execution (meaning the properties plugin I mentioned earlier won't work for us). I suppose technically we could try to create a settings.xml file but I would be concerned that this has the potential to interfere with the settings.xml for a particular users environment. Philip -----Original Message----- From: Wayne Fay [mailto:[email protected]] Sent: Thursday, March 25, 2010 5:54 PM To: Maven Users List Subject: Re: build.properties Question > that functionality was lost in Maven 1. Can anyone tell me why this > functionality was removed or, better yet, if there is a flag to turn > it back on? There is no flag, and I can't imagine one will be added. Maven simply does not use properties files. If you must use properties files, then you must use a Maven plugin or Ant, Ivy, etc. Jason van Zyl has previously responded to this question: http://old.nabble.com/Making-properties-accessible-in-pom.xml-ts8996414. html Make sure you read Stephen Connolly's response in that same thread before getting too deep into your usage of any plugins to read those properties files, too. If you're planning on using Maven long-term, you really need to migrate away from properties files, they're just not supported. Wayne --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
