Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Service builder internal dependency error
Hi,
liferay-portal-7.1.3-ga4
<?xml version="1.0"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 7.1.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_1_0.dtd"><service-builder package-path="tm.multitenancy">
<namespace>Crudddd</namespace>
<entity name="Booksss" table="CRUD_BOOK_PORTLETT" local-service="true" remote-service="true">
<column name="bookIdsss" type="long" primary="true" id-type="increment"/>
<column name="bookName" type="String" />
<column name="description" type="String" />
<column name="authorName" type="String" />
<column name="isbn" type="int" />
<column name="price" type="int" />
i am getting dependency error ,
Working Directory: E:\NewTechnomail\newTechnomail\fedanalytics-liferay-workspace\modules\testServices\testServices-service
Gradle user home: C:\Users\zygnum121\.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 4.10.2
Java Home: C:\Program Files\Java\jdk1.8.0_191
JVM Arguments: None
Program Arguments: None
Build Scans Enabled: false
Offline Mode Enabled: false
Gradle Tasks: deploy> Task :modules:testServices:testServices-api:compileJava NO-SOURCE
> Task :modules:testServices:testServices-api:buildCSS NO-SOURCE
> Task :modules:testServices:testServices-api:processResources NO-SOURCE
> Task :modules:testServices:testServices-api:transpileJS SKIPPED
> Task :modules:testServices:testServices-api:configJSModules SKIPPED
> Task :modules:testServices:testServices-api:replaceSoyTranslation NO-SOURCE
> Task :modules:testServices:testServices-api:wrapSoyAlloyTemplate SKIPPED
> Task :modules:testServices:testServices-api:classes UP-TO-DATE
> Task :modules:testServices:testServices-api:jar FAILEDFAILURE: Build failed with an exception.* What went wrong:
Could not resolve all files for configuration ':modules:testServices:testServices-api:compileClasspath'.
> Could not find biz.aQute.bnd:biz.aQute.bndlib:.
Required by:
project :modules:testServices:testServices-api* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 0s
1 actionable task: 1 executed
</entity>
</service-builder>
liferay-portal-7.1.3-ga4
<?xml version="1.0"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 7.1.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_1_0.dtd"><service-builder package-path="tm.multitenancy">
<namespace>Crudddd</namespace>
<entity name="Booksss" table="CRUD_BOOK_PORTLETT" local-service="true" remote-service="true">
<column name="bookIdsss" type="long" primary="true" id-type="increment"/>
<column name="bookName" type="String" />
<column name="description" type="String" />
<column name="authorName" type="String" />
<column name="isbn" type="int" />
<column name="price" type="int" />
i am getting dependency error ,
Working Directory: E:\NewTechnomail\newTechnomail\fedanalytics-liferay-workspace\modules\testServices\testServices-service
Gradle user home: C:\Users\zygnum121\.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 4.10.2
Java Home: C:\Program Files\Java\jdk1.8.0_191
JVM Arguments: None
Program Arguments: None
Build Scans Enabled: false
Offline Mode Enabled: false
Gradle Tasks: deploy> Task :modules:testServices:testServices-api:compileJava NO-SOURCE
> Task :modules:testServices:testServices-api:buildCSS NO-SOURCE
> Task :modules:testServices:testServices-api:processResources NO-SOURCE
> Task :modules:testServices:testServices-api:transpileJS SKIPPED
> Task :modules:testServices:testServices-api:configJSModules SKIPPED
> Task :modules:testServices:testServices-api:replaceSoyTranslation NO-SOURCE
> Task :modules:testServices:testServices-api:wrapSoyAlloyTemplate SKIPPED
> Task :modules:testServices:testServices-api:classes UP-TO-DATE
> Task :modules:testServices:testServices-api:jar FAILEDFAILURE: Build failed with an exception.* What went wrong:
Could not resolve all files for configuration ':modules:testServices:testServices-api:compileClasspath'.
> Could not find biz.aQute.bnd:biz.aQute.bndlib:.
Required by:
project :modules:testServices:testServices-api* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 0s
1 actionable task: 1 executed
</entity>
</service-builder>
Hi, Try adding below dependency in build.gradle of service
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.5.0"
Hi Mohammed Yasin,it is not working internal dependencies.dependencies {
//compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib"
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.5.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.spring.extender.api"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
compileOnly group: "org.osgi", name: "org.osgi.core"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations"
compileOnly project(":modules:testServices:testServices-api")
}buildService {
apiDir = "../testServices-api/src/main/java"
}group = "tm.multitenancy"
//compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib"
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.5.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.spring.extender.api"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
compileOnly group: "org.osgi", name: "org.osgi.core"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations"
compileOnly project(":modules:testServices:testServices-api")
}buildService {
apiDir = "../testServices-api/src/main/java"
}group = "tm.multitenancy"