【发布时间】:2014-08-07 03:44:29
【问题描述】:
我有一个在 Eclipse 中运行的 JSF2 (Richfaces 4.1.0) 项目。 我正在尝试使用 mojarra jsf 实现(2.2.0)在 WAS 8.5 上运行它。 然后 maven 提供了 lib,但服务器似乎覆盖了它们,因为在控制台中我可以读取 Myfaces 已加载。
我想知道为什么 WAS 会这样?如何让项目使用 mojarra 而不使用管理控制台中的共享库?
这是代码的 maven 相关部分:
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>javax.faces-api</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.faces</artifactId>
<version>2.2.0</version>
</dependency>
提前致谢
【问题讨论】:
标签: richfaces maven-3 websphere-8