Message Boards

Problems compilation modules Liferay 7.2.0GA1

GORKA SANZ, modified 4 Years ago.

Problems compilation modules Liferay 7.2.0GA1

New Member Posts: 5 Join Date: 1/22/20 Recent Posts
Hello I have created the module in Eclipse version  7.2.0-ga1 attached by mail in liferay and developed and executed the following commands for compiling it :
blade gw jarorgradlew distBundleI have the following build.gradle file :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'}
Whe I compile I have the following error :
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 errorsThe main problem is that I cannot find the correct version of the package com.liferay.portal.kernel which contains the class CTModel. I cannot find the correct version of the package com.liferay.portal.kernel. which contains the class CTService   in the build .gradle file.Any idea ?
thumbnail
David H Nebinger, modified 4 Years ago.

RE: Problems compilation modules Liferay 7.2.0GA1

Liferay Legend Posts: 14916 Join Date: 9/2/06 Recent Posts