Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Liferay7中的编译问题_Liferay_Liferay 7.2 - Fatal编程技术网

Liferay7中的编译问题

Liferay7中的编译问题,liferay,liferay-7.2,Liferay,Liferay 7.2,我已经在liferay中创建了通过邮件附加的模块,并在eclipse中开发了该模块,并执行了以下编译命令: blade gw jar o el comando gradlew distBundle 我有以下build.gradle文件: dependencies { compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: '4.33.0' compileOnly group:

我已经在liferay中创建了通过邮件附加的模块,并在eclipse中开发了该模块,并执行了以下编译命令:

blade gw jar
o el comando 
gradlew distBundle
我有以下build.gradle文件:

dependencies {
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: '4.33.0'

compileOnly group: "javax.ws.rs", name: "javax.ws.rs-api", version: '2.1.1'
compileOnly group: "org.osgi", name: "org.osgi.core", version: "6.0.0"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations",version: '1.3.0'
compileOnly group: "org.osgi", name: "org.osgi.service.jaxrs",version: '1.0.0'

compileOnly group: "com.liferay", name: "com.liferay.asset.category.property.api",version: '2.1.3'
compileOnly group: "com.liferay", name: "com.liferay.dynamic.data.mapping.api",version: '6.0.1'
compileOnly group: "com.liferay", name: "com.liferay.journal.api",version: '2.1.0'

compileOnly group: "javax.servlet", name: "javax.servlet-api",version: '4.0.1'

}
编译时,我有以下错误:

C:\Users\usuario\Documents\LiferayA1CuatroOchenta\modules\modulo-rest-gestion-contenidos\cuatroochenta-rest\src\main\java\com\cuatro\ochenta\onesignal\listener\AvisoListener.java:55: error: cannot access CTModel
                if (Objects.equals(avisoStructureId, ddmStructure.getStructureId())) {
                                  ^
  class file for com.liferay.portal.kernel.model.change.tracking.CTModel not found
C:\Users\usuario\Documents\LiferayA1CuatroOchenta\modules\modulo-rest-gestion-contenidos\cuatroochenta-rest\src\main\java\com\cuatro\ochenta\rest\resource\AgendaTematicaResource.java:69: error: cannot access CTService
                DDMStructure ddmStructure = _ddmStructureLocalService.getDDMStructure(GetterUtil.getLong(PropsUtil.get("agenda.tematica.structure.id")));
                                                                     ^
  class file for com.liferay.portal.kernel.service.change.tracking.CTService not found
2 errors
当我执行以下命令时:

gradle gw jar
JournalArticle类无法获取CTmodel
我使用了以下Liferay版本:7.2.0-ga1


我已将主要文件附加到模块文件夹中。

因为您的文件存储在C驱动器中。可能存在权限问题。在不同的驱动器中尝试。