0

I want to edit the properties file using Maven profile and then build project to run the test with edited property file using Maven build. I have following in my property file (config.properties)

browsername=${browser}
environment=${env}

I have tried all the solutions given and it's not working for me.

blurfus
  • 13,485
  • 8
  • 55
  • 61
montu
  • 13
  • 1
  • 4
  • 1
    Check the accepted answer at https://stackoverflow.com/questions/3868310/how-can-i-change-a-properties-file-in-maven-depending-on-my-profile – Ishan Thilina Somasiri Jan 19 '18 at 04:28
  • Possible duplicate of [How to inject Maven profile value into properties file](https://stackoverflow.com/questions/34289889/how-to-inject-maven-profile-value-into-properties-file) – Jorge Campos Jan 19 '18 at 04:55
  • yes. I have already tried those solutions ..but the tokens are not getting replaced. when I run "clean install -P" the value is not getting updated to the config.property file – montu Jan 19 '18 at 05:20
  • after adding in section of pom.xml .. do I need to add any thing in to section other then .. anything else needs to be added to – montu Jan 19 '18 at 05:22

0 Answers0