prashanth
(Prashanth)
February 4, 2019, 11:53am
#1
Hello,
I was trying to follow this example. GitHub - mariodavid/cuba-example-application-components: Example for using CUBA application components
Appointments and platform open in the studio fine. When I try to open the 3rd one which is project management app, I see the following error as in the screenshot.
What I have tried:
Tried to provide path as follows:
maven {
url 'F:/studio-projects/cuba-example-application-components-master/appointments'
}
Also added the company-platform-global-0.1-SNAPSHOT.jar and company-global-0.1-SNAPSHOT into local maven using mvn install.
I am a .net guy and still trying to understand all the new technologies here. I am not sure how to proceed. Any pointers would be helpful.
Thanks,
Prashanth
artamonov
(Yuriy Artamonov)
February 4, 2019, 4:08pm
#2
Hi,
Most likely, mavenLocal() is missing in project-management-platform build.gradle. Try to change repositories to:
buildscript {
ext.cubaVersion = '6.3.0.RC1'
repositories {
mavenLocal()
maven {
url 'https://repo.cuba-platform.com/content/groups/work'
credentials {
username(rootProject.hasProperty('repoUser') ? rootProject['repoUser'] : 'cuba')
password(rootProject.hasProperty('repoPass') ? rootProject['repoPass'] : 'cuba123')
}
}
}
Do not forget to install required components using gradlew install: both project-management-platform and appointments.
prashanth
(Prashanth)
February 4, 2019, 5:51pm
#3
Hi Yuriy,
Thank you for the quick response. Here is my problem:
I can open appointments and Project management platform in Cuba Studio with no problem.
When I try to open Project management app, it has a dependency on the above 2 solutions.
This is unable to add the located the two dependencies. Also I added mavenLocal() and did not seem to help.
Note: ext.cubaVersion = ‘6.3.0.RC1’ gives error for all 3 projects. I changed it to 6.3.1 and it works. This might help some one who is trying to use the same example.
Please let me know if I can try any other option to solve this.
Regards,
Prashanth
artamonov
(Yuriy Artamonov)
February 5, 2019, 8:41am
#4
I’ve migrated all projects to CUBA 6.10.7: https://github.com/jreznot/cuba-example-application-components
Use the following steps:
Open appointments project in CUBA Studio
Use menu Run - Install App Component
Open project-management-platform project in CUBA Studio
Use menu Run - Install App Component
Open project-management-app in CUBA Studio
Use menu Run - Create database
Now, you will be able to start project-management-app.
prashanth
(Prashanth)
February 5, 2019, 10:12am
#5
Hello Yuriy,
Thank You. It works perfectly now.
Regards,
Prashanth