Hi Donny, =?utf-8?B?6LCiIOWGrOm4ow==?= wrote:
> Hi, > > I have a question about maven. In our project, I have one file named > "config.properties" which be changed in different environment, and also we > have some files named "config-dev.properties", "config-test.properties" > and "config-production.properties", in different environment we will > replace the "config.properties" with "config-dev.properties" and so on. I > know maven has a feature called "profile", it can filter some text in my > files but it's not my want. Because I don't want to put those environment > variables to pom.xml (maybe some day i will use Ant to build my > application), and second I want to perform the replacement after every > compile, so it can be applied to my test phase or package phase(Yeah, if i > use maven's profile this will be easy). So any one can help me? I used > Ant before, i can control the build process and replace files at any time > within ant, but how can i replace files and control process in maven > without its profile and filter text. Maven simply does not work this way. You should adapt your project setup to one build tool and stick with it. - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org