OK. I should mention that my webapps are normally designed to use the same build for dev,
test and production; I do the environment-specific stuff in the deployment, not in the app itself. Not only does this make my deployables one-size-fits-all, it also ensures that the code being tested is the same code that broke in production. I only use profiles when the differences are too radical for that, such as development on Tomcat for deployment on
JBoss (which, unlike Tomcat has
JSF built in and doesn't need the extra jars).
There are 3 possibilities that I know of.
1. Activate the tomcat profile as a default too. Since you can have more than one profile applied to a build.
2. Duplicate the desired profile elements in the default profile
3. Put it all under a super-POM that recurses on Maven with the desired profiles.