我是 life-ray 的新手。我创建了一个服务包装器 UserLocalServiceWrapper 名称测试包装器。现在我尝试在不同的模块中使用测试包装器。但它给出了依赖性问题。奇怪的是我看不到错误。我为了更清晰,已附上此请求的屏幕截图。
测试包装器的 build.gradle
dependencies {
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
compileOnly group: "org.osgi", name: "osgi.cmpn", version: "6.0.0"
}
其他模块的build.gradle
dependencies {
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
compileOnly group: "javax.portlet", name: "portlet-api", version: "2.0"
compileOnly group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1"
compileOnly group: "jstl", name: "jstl", version: "1.2"
compileOnly group: "org.osgi", name: "osgi.cmpn", version: "6.0.0"
compileOnly group: "com.liferay.portal", name: "portal-service", version: "6.1.1"
compile project(":modules:testWrapper")
}
请让我知道我正在使用正确的依赖 jar 或者还有什么我忘记添加的