gpt4 book ai didi

jsf - 使用gradle进行依赖管理

转载 作者:行者123 更新时间:2023-12-03 03:22:29 25 4
gpt4 key购买 nike

我试图仅将gradle用于jar依赖项,这意味着我从构建路径中取出了所有jar,并像这样编写它:compile 'groupid:artifactid:version'

现在,当我尝试运行服务器(tomcat 7.0.39)时,我得到了:

java.lang.IllegalStateException: Second notification for the same phase in the same request occurred. phaseId.ordinal: 1; phaseId = RESTORE_VIEW 1; More than one org.openfaces.component.validation.ValidatorPhaseListener is found to be registered (2). Check that only one JSF implementation is deployed with your application's classpath, and openfaces.jar is not duplicated in application's and server's libraries.

我不知道该怎么办以及在哪里看。

有人可以照亮吗?

最佳答案

您需要做的是运行gradle dependencies来查看依赖关系树。然后搜索有问题的软件包-应该将其加倍。您需要排除冲突的软件包之一。 Here是有关依赖项排除的文档。

关于jsf - 使用gradle进行依赖管理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32325339/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com