You can define a variable as the scope of those dependencies and assign the value "compile" or "provided" in different profiles, corresponding to the container you are building for.
-Olivier On Sat, 2008-03-29 at 11:20 -0800, Mick Knutson wrote: > So when I build my facelets JSF war for Jetty, I keep getting errors about > needing to omit this from my war: > > * <dependency> > <groupId>javax.el</groupId> > <artifactId>el-api</artifactId> > <version>1.2</version> > <scope>provided</scope> > </dependency> > > <dependency> > <groupId>javax.el</groupId> > <artifactId>el-ri</artifactId> > <version>1.2</version> > <scope>provided</scope> > </dependency> > * > But then if I state these 2 jars as provided then deploy the same war to > tomcat 5.5, I get an error that those classes are missing. > So what should I do if I want to be able to build for both containers? > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]