> The source code must be common, dev1, dev2 etc. are different environments > differs only in configuration files.
In that case, I would probably use profiles (which were designed for this purpose exactly) and structure the project as follows: no dev1, dev2 directories common has all files including config in the proper directory (src/main/resources) create "dev1" and "dev2" profiles with various values that are filtered into the config files during the build, also the profiles would set classifiers "dev1" and "dev2" or whatnot Then you would issue "mvn install -Pdev1" and it would build the code with the dev1 values substituted into the config files, and "mvn install -Pdev2" would do the same for dev2 values. Wayne --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
