Fórum
import issue
Manikantha Rajamani, modificado 6 Anos atrás.
import issue
Expert Postagens: 258 Data de Entrada: 25/03/14 Postagens Recentes
Hi Team,
I have created custom module and i'm getting following import issue
unresolved requirement: Import-package :com.liferay.portal.setting.web.portlet.action; version="[1.0.0,1.10]
i have used following in build.gradle file
dependencies {
compileOnly group: "com.liferay", name: "com.liferay.frontend.taglib", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.petra.lang", version: "1.0.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.settings.lang", version: "1.0.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.settings.web", version: "1.2.0"
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: "org.osgi", name: "org.osgi.service.component.annotations", version: "1.3.0"
}
plz help how to solve these issue
Thanks and Regards
Manikantha R
I have created custom module and i'm getting following import issue
unresolved requirement: Import-package :com.liferay.portal.setting.web.portlet.action; version="[1.0.0,1.10]
i have used following in build.gradle file
dependencies {
compileOnly group: "com.liferay", name: "com.liferay.frontend.taglib", version: "2.0.0"
compileOnly group: "com.liferay", name: "com.liferay.petra.lang", version: "1.0.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.settings.lang", version: "1.0.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.settings.web", version: "1.2.0"
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: "org.osgi", name: "org.osgi.service.component.annotations", version: "1.3.0"
}
plz help how to solve these issue
Thanks and Regards
Manikantha R
James Hinkey, modificado 6 Anos atrás.
RE: import issue
Junior Member Postagens: 62 Data de Entrada: 15/02/11 Postagens Recentes
Hi Manikantha,
To make the dependency packages available at runtime, you must use compile keyword (not compileOnly) for its artifact.
Jim
To make the dependency packages available at runtime, you must use compile keyword (not compileOnly) for its artifact.
Jim
Manikantha Rajamani, modificado 6 Anos atrás.
RE: import issue
Expert Postagens: 258 Data de Entrada: 25/03/14 Postagens RecentesJames Hinkey:
Hi Manikantha,
To make the dependency packages available at runtime, you must use compile keyword (not compileOnly) for its artifact.
Jim
Hi James,
I tried with using compile also but still same issue
Thanks and Regards
Manikantha R
David H Nebinger, modificado 6 Anos atrás.
RE: import issue
Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Actually, unless you know why you are trying to use settings 1.2.0, I would recommend just changing it to 1.0.0.