这些是我看到的四个要求:
Unresolved requirement: Import-Package: com.liferay.asset.kernel.service; version="[1.6.0,2.0.0)"
Unresolved requirement: Import-Package: com.liferay.asset.kernel.service; version="[1.6.0,2.0.0)"
Unresolved requirement: Import-Package: com.liferay.document.library.kernel.exception; version="[1.1.0,2.0.0)"
Unresolved requirement: Import-Package: com.liferay.exportimport.kernel.lar; version="[1.4.0,2.0.0)"
数字4是我编写的build.gradle的问题。
dependencies {
compileOnly group: "com.liferay", name: "com.liferay.osgi.service.tracker.collections", version: "2.0.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.46.0"
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: 'javax.mail', name: 'mail', version: '1.4'
compileInclude group: 'net.sf.jtidy', name: 'jtidy', version: 'r938'
compileInclude group: 'org.apache.pdfbox', name: 'pdfbox', version: '1.1.0'
compileInclude group: 'org.xhtmlrenderer', name: 'flying-saucer-pdf-itext5', version: '9.0.1'}