Hi Sebb, 

Haven't seen that one before thanks. This still feels like overkill for
what seems like a simple operation but perhaps it might be a necessary
evil. 

Philip

-----Original Message-----
From: sebb [mailto:[email protected]] 
Sent: Sunday, March 28, 2010 10:41 PM
To: Maven Users List
Subject: Re: build.properties Question

On 26/03/2010, Philip Wilder <[email protected]> wrote:
> 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.

Have you seen this?

http://www.gxdeveloperweb.com/Blogs/Bram-de-Kruijff/Maven-secrets-Dynami
c-Maven-properties-with-Beanshell.htm

>
>  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]
>
>

---------------------------------------------------------------------
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]

Reply via email to