First of all, I'm going to start with an apology because I know this is probably a very simple thing to do in Maven, I just haven't worked it out...
In building my web applications with Maven (I've just used ant scripts in the past) we have certain config files that change depending on the environment that the application is running in (e.g. log4j files etc). So I need a way of configuring Maven to do this. I've been told profiles are the way to go, but I've never got this successfully working.
My project is set up so that the developer copy of the files are all in src/main resources and the environment specific files are in sub-folders (e.g. src/main/resources/usertest). So when I'm doing the build, I need the files in the usertest folder to replace those in the parent folder.
Any help on this would be greatly appreciated. If I've got my project incorrectly set up, please let me know.
Many thanks,
Kev