开发者

JSF-API 2.0 is not in Maven central repo?

I'm trying to add jsf-api and jsf-impl dependencies to a project, and can't find them in Maven central repo. Are they there? I'm interested in 2.0+.

Mojarra site suggests to add a 开发者_如何学Golink to their repository:

<repository>
  <id>java.net</id>
  <name>java.net</name>
  <url>http://download.java.net/maven/2</url>
</repository>

But this is against Maven convention not to use third-party repositories, only Maven central..


If you don't want to add the repository reference directly in your POM, you can add it in Maven's settings file. Alternatively, consider a repository manager such as Nexus.


Add this repository http://download.java.net/maven/2/com/sun/faces/ to your maven project and use this dependencies:

<dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-api</artifactId>
    <version>2.0.x</version>
</dependency>
<dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-impl</artifactId>
    <version>2.0.x</version>
</dependency>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜