Hi all,

I have posted this before and have not got a solution for this. My
requirement is to have some name,value pairs defined in external
properties file like "username.properies" in the local drive and my
pom.xml would be wanting the values for those parameters substituted in
them. Something like picking up properties from build.properties in ant.


 

How do I do this with maven? I am using maven version 2.0.4. 

 

To be clear, I would have a properties file called "maven.propeties" as
follows:

"

test_outdir = C:\test

result_dir = C:\test\result 

.

.

"

 

I want to be using these in the pom.xml as follows:

<plugin>

....<configuration>

             <outDir>${test_outdir}</outDir>

 

 

I understand that this can be done by defining the properties in the
settings.xml under the properties element. However, my requirement is to
read them from a user's properties file as mentioned above.

 

Regards,

Ravi.

"Tough times never last, but tough men do..."

 

Reply via email to