You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mick Knutson <mi...@gmail.com> on 2008/03/29 20:20:44 UTC
[m2] Issue building facelets war for jetty and tomcat
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?
--
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.linkedin.com/in/mickknutson
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---
Re: [m2] Issue building facelets war for jetty and tomcat
Posted by Olivier Dehon <od...@gmail.com>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org