got the answer.. <profile/> can contain <modules/>, so we would need to list the modules for each profile separately, and hence can leave the web module out of prod profile. Didn't look at the complete POM model before, sorry for the bother :-)
Regards, Abhinav ________________________________________ From: Abhinav Garg [EMAIL PROTECTED] Sent: Monday, October 20, 2008 7:31 PM To: [email protected] Subject: Is there a way to turn off a module for a profile? Hi, We've an existing spring based application, which has multiple modules in it. We build it through Maven, and have multiple profiles for different environments (local, test, stage and prod). Now, we've a requirement to create a web module in the same application. The thing is that it's required to be active only in local, test and stage environments. It should not be working in prod environment. So, the question is that is there a way to turn off a module for a particular profile in maven pom (preferably) or programatically? Thanks. Regards, Abhinav --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
