在服务器中部署Liferay时出现问题

时间:2020-03-26 09:10:17

标签: liferay-7

您好,我已经使用Liferay Developer Studio版本:3.7.1.7.201910160309-ga2来开发Liferay模块,我想开发一个模块。当我完成开发时 我在本地Liferay Tomcat Liferay服务器中测试的模块的配置,并且在部署中没有任何问题。 我使用所有Liferay工具创建了一个泊坞窗,并出现以下错误: org.osgi.framework.BundleException:无法解析模块:cuatroochenta.rest [943] _未解决的要求:导入包:com.liferay.asset.category.property.model; version =“ [2.0.0,3.0.0)” _ [已清除] 在org.eclipse.osgi.container.Module.start(Module.java:444)上:

    Cuatro-ochenta rest is the module that I have imported. The build.gradle file is the following :
    dependencies {
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
compileOnly group: "javax.ws.rs", name: "javax.ws.rs-api"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations"
compileOnly group: "org.osgi", name: "org.osgi.service.jaxrs"
compileOnly group: "com.liferay", name: "com.liferay.asset.category.property.api"
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.api"
compileOnly group: "com.liferay", name: "com.liferay.journal.api"   
compileOnly group: "javax.servlet", name: "javax.servlet-api"
compileOnly 'javax.ws.rs:javax.ws.rs-api'
compileOnly 'com.liferay:com.liferay.dynamic.data.mapping.api'

}

有什么想法吗? 谢谢

0 个答案:

没有答案