Is there any possibility you could rename the development version to something like beanRefFactory-dev.xml and put it in the same place as the production version? If so, then you could refer to one or the other by a token, and define it in properties in the profiles. Or you could put the path into the property, and then you might not have to move the dev version.
Something like: (in the main pom.xml, where the profiles are defined) <profiles> <profile> <id> dev </id> <properties> <unusedConfigFile>beanRefFactory.xml</unusedConfigFile> </properties> </profile> <profile> <id> prod </id> <properties> <unusedConfigFile>beanRefFactory-dev.xml</unusedConfigFile> </properties> </profile> </profiles> (in the core/pom.xml file where you pull in the resource files) <resources> <resource> <directory>target/src</directory> <excludes> <exclude>**/*.java</exclude> <exclude>**/${unusedConfigFile}</exclude> </excludes> </resource> <resources> I'm new to Maven too (and in fact I actually just today submitted a question about doing a more elaborate version of this), so I'm not 100% certain about the order in which things are processed, but it makes sense that the main, top-level pom.xml would be read in first, so those profiles' properties should be available by the time core/pom is reached. ~DVA -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]