在POM文件中导入JSF 2.3

时间:2017-05-24 17:48:43

标签: jsf jsf-2.3

我尝试导入JSF依赖项以使用JSF 2.3但我收到错误:

    <dependency>
        <groupId>org.glassfish</groupId>
        <artifactId>javax.faces</artifactId>
        <version>2.3.0</version>
    </dependency>

Failed to collect dependencies for [org.glassfish:javax.faces:jar:2.3.0 (compile)

哪种实现应该更好用?

1 个答案:

答案 0 :(得分:1)

这将完成工作

<dependency>
    <groupId>javax.faces</groupId>
    <artifactId>javax.faces-api</artifactId>
    <version>2.3</version>
    <scope>provided</scope>
</dependency>