1

我是 Maven 和 JSF 的新手,在编译我的项目时遇到以下问题:

Failed to execute goal on project ViewController: Could not resolve dependencies for project com.km.eFarmer:ViewController:war:1.0.1-alpha1-SNAPSHOT: The following artifacts could not be resolved: com.sun.faces:jsf-api:jar:2.0.3-FCS, com.sun.faces:jsf-impl:jar:2.0.3-FCS, org.openfaces:openfaces:jar:3.0.2-KM, cssparser:cssparser:jar:0.9.5, it.eng.spago:sbi-utils:jar:3.3.0: Failure to find com.sun.faces:jsf-api:jar:2.0.3-FCS in http://repo1.maven.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of maven.maven2 has elapsed or updates are forced -> [Help 1

4

2 回答 2

3

这意味着该工件com.sun.faces:jsf-api:jar:2.0.3-FCS在存储库中不存在 http://repo1.maven.org/maven2/

事实上,这个 repo 中没有jsf-api.jarwith 版本2.0.3-FCS。有一个可用版本列表。因此,您应该更改工件版本或存储库 url

于 2012-09-18T08:34:05.757 回答
-2

简单地删除文件夹本地存储库 com/sun/faces 并重试。

于 2012-09-18T08:31:27.913 回答