本文介绍了Mojarra 2.1的Maven dependecies的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用 Mojarra 2.1
我的容器是 Tomcat 7
我正在使用 IceFaces 2
。
and my container is Tomcat 7
and I am using IceFaces 2
.
我应该仅包含API如下?
Should I include the API only as follows?
<dependency>
<groupId>javax.faces</groupId>
<artifactId>javax.faces-api</artifactId>
<version>2.1</version>
</dependency>
UPDATE:我使用的是servlet 3.0.1,jsp 2.2.1 ,2.2可能它有冲突:
UPDATE: I am using servlet 3.0.1, jsp 2.2.1, el 2.2 maybe it's conflicting:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>2.2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>javax.el-api</artifactId>
<version>2.2.2</version>
<scope>provided</scope>
</dependency>
推荐答案
我使用Mojarra 2.1.2与此依赖关系
I use Mojarra 2.1.2 with this dependencies
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.1.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.1.2</version>
<scope>compile</scope>
</dependency>
这篇关于Mojarra 2.1的Maven dependecies的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!