Error building project with dependency on webjars

Hi

Follow-up of this project build issue, where there was an error downloading webjars dependency.

Now there is an issue with one dependency of webjars. Previously, I had a 403, now this is a 500. The 403 was preventing the refresh of the dependencies, but not the build.

The 500 prevents me from building the project at all.

Execution failed for task ‘:ibusy2-web:compileJava’.

Could not resolve all files for configuration ‘:ibusy2-web:compileClasspath’.
Could not resolve org.webjars.npm:codemirror-formatting:[1.0.0,2).
Required by:
project :ibusy2-web > com.haulmont.addon.grapesjs:grapesjs-web:0.5.3 > org.webjars.npm:grapesjs:0.16.2
Failed to list versions for org.webjars.npm:codemirror-formatting.
Unable to load Maven meta-data from http://repo.e-iceblue.com/nexus/content/groups/public/org/webjars/npm/codemirror-formatting/maven-metadata.xml.
Could not HEAD ‘https://repo.e-iceblue.com/nexus/content/groups/public/org/webjars/npm/codemirror-formatting/maven-metadata.xml’. Received status code 500 from server: Server Error

EDIT: Tried with --offline build but I do not have everything in cache
Execution failed for task ‘:ibusy2-web:compileJava’.

Could not resolve all files for configuration ‘:ibusy2-web:compileClasspath’.
Could not download promise-polyfill.jar (org.webjars.npm:promise-polyfill:8.2.1): No cached version available for offline mode
Could not download ajv.jar (org.webjars.npm:ajv:6.12.6): No cached version available for offline mode

Both are webjars dependencies, which I cannot download due to the current issue. Seems I’m stuck.

Any help appreciated.

Regards
Michael

Hi,

This repository does not belong to CUBA team, we can’t help with it.

Update.

After several tries and errors, like this one :

Caused by: org.gradle.api.resources.ResourceException: Could not get resource ‘https://repo.cuba-platform.com/content/groups/premium/e-iceblue/spire.xls.free/2.2.0/spire.xls.free-2.2.0.pom’.

We finally managed to make the following buildscript working:

  • replace https by http
  • put ice-blue repo in first
buildscript {
    ext.cubaVersion = '7.2.10'
    repositories {
        mavenCentral()
        maven { url 'http://repo.e-iceblue.com/nexus/content/groups/public/' }
        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'))
            }
        }

    }
    dependencies {
        classpath "com.haulmont.gradle:cuba-plugin:$cubaVersion"
    }
}