无法在 Liferay-7 GA5 的其他模块中导入服务包装器模块

Unable to import service wrapper module in other module in Liferay-7 GA5

我是新手-ray.I 创建了一个服务包装器 UserLocalServiceWrapper 名称测试包装器。现在我尝试在不同的环境中使用测试包装器 module.But 它给了依赖性 issue.And 奇怪的事情是我看不到 errors.I 附上的屏幕截图吗?为了更清晰起见。

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 或者还有什么我忘记添加的东西

当我在我的 jsp 中添加以上行时,出现错误

当我删除该行时,错误消失了

检查testwrapper 的.bnd 文件并确保您已经导出包。使用以下 属性.

导出包:\ 测试包装器,\

在 Eclipse 中右键单击项目并执行 Gradle 刷新。