Artifact com.haulmont.cuba:cuba-gui:6.6.4 not found in the repositories:[https://repo.cuba-platform.

When i create a new project or load a project, i get the following error:


2017-10-11 13:25:22,725 ERROR [com.haulmont.studio.ui.app.App] Exception occured
java.io.FileNotFoundException: Artifact com.haulmont.cuba:cuba-client:6.6.4 not found in the repositories:[https://repo.cuba-platform.com/content/groups/work, https://repo.cuba-platform.com/content/groups/premium]
 at com.haulmont.studio.backend.p.d.a(SourceFile:428)
 at com.haulmont.studio.backend.b.a(SourceFile:202)
 at com.haulmont.studio.backend.b.a(SourceFile:47)
 at com.haulmont.studio.backend.c.run(SourceFile:97)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)

Hi,
Is your internet connection fast enough?
Do you use proxy for the internet connection? If so, you may need some additional setup. See the documentation.
Check contents of the build.gradle file in the root directory of your project.
Correct repository credentials (username and password) should be specified there.

buildscript {
    ext.cubaVersion = '6.6.4'
    repositories {
        
        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')
            }
        }
        maven {
            url 'https://repo.cuba-platform.com/content/groups/premium'
            credentials {
                username(rootProject.hasProperty('premiumRepoUser') ? rootProject['premiumRepoUser'] : System.getenv('CUBA_PREMIUM_USER'))
                password(rootProject.hasProperty('premiumRepoPass') ? rootProject['premiumRepoPass'] : System.getenv('CUBA_PREMIUM_PASSWORD'))
            }
        }
        
    }
....


You can also use Bintray repository instead of repo.cuba-platform.com: modify the build.gradle as follows and try to open the project.

buildscript {
    ext.cubaVersion = '6.6.4'
    repositories {
        
        maven {
            url 'https://dl.bintray.com/cuba-platform/main'
            
        }
        maven {
            url 'https://cuba-platform.bintray.com/premium'
            credentials {
                username(rootProject.hasProperty('premiumRepoUser') ? rootProject['premiumRepoUser'] : System.getenv('CUBA_PREMIUM_USER'))
                password(rootProject.hasProperty('premiumRepoPass') ? rootProject['premiumRepoPass'] : System.getenv('CUBA_PREMIUM_PASSWORD'))
            }
        }
        mavenCentral()
        jcenter()
        maven {
            url 'http://maven.vaadin.com/vaadin-addons'
        }
        
    }

.....

Hello,

Thank you, it was actually due to a proxy. Set the proxy for bower as well as node and it started working.