Application components

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.
CP_Error

What I have tried:

  1. Tried to provide path as follows:

    maven {
        url 'F:/studio-projects/cuba-example-application-components-master/appointments'
    }
    
  2. 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

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.

Hi Yuriy,

Thank you for the quick response. Here is my problem:

  1. I can open appointments and Project management platform in Cuba Studio with no problem.
  2. 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

I’ve migrated all projects to CUBA 6.10.7: https://github.com/jreznot/cuba-example-application-components

Use the following steps:

  1. Open appointments project in CUBA Studio
  2. Use menu Run - Install App Component
  3. Open project-management-platform project in CUBA Studio
  4. Use menu Run - Install App Component
  5. Open project-management-app in CUBA Studio
  6. Use menu Run - Create database

Now, you will be able to start project-management-app.

Hello Yuriy,

Thank You. It works perfectly now.

Regards,
Prashanth