[英]Java 9: module not found: primefaces
I am migrating a webapp project to Java 9 which uses primefaces. 我正在将一个webapp项目迁移到使用质数表的Java 9。
In the maven pom.xml primefaces was declared already properly: 在行家中,pom.xml primefaces已经正确声明:
<dependencies>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>6.0</version>
</dependency>
...
</dependencies>
In module-info.java I added - as indicated by IntelliJ - a "requires primefaces;". 在module-info.java中,我添加了-如IntelliJ所示-“需要素数;”。 So it looks:
所以看起来:
module sharedwebapp {
...
requires primefaces;
...
}
For other third party components this worked well. 对于其他第三方组件,此方法效果很好。 But for primefaces, I get the following error doing mvn clean install :
但是对于primefaces,在执行mvn clean install时出现以下错误:
>...shared-webapp/src/main/java/module-info.java:[9,14] module not found: primefaces
Is there anything I miss to declare? 我想念什么吗? Anything else to add?
还有什么要补充的吗?
After the hint by Alan (see comment above) it turned out that there is a nasty text "INSTALL" in the following file: 在Alan提示之后(请参阅上面的注释),结果表明以下文件中存在讨厌的文本“ INSTALL”:
primefaces-6.0.jar/META-INF/services/org.atmosphere.cpr.AtmosphereFramework primefaces-6.0.jar / META-INF / services / org.atmosphere.cpr.AtmosphereFramework
INSTALL
org.primefaces.push.impl.PushEndpointMapper
org.primefaces.push.impl.PushEndpointInterceptor
But apparently there are only classes expected. 但显然只有预期的课程。 So I took a brute force solution deleting this text 'INSTALL':
因此,我采取了蛮力解决方案,删除了此文本“ INSTALL”:
org.primefaces.push.impl.PushEndpointMapper
org.primefaces.push.impl.PushEndpointInterceptor
Running mvn clean install now works like a charm... 现在运行mvn clean install就像一个魅力...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.