Could not determine dependencies

Hi everyone,

I want to run CUBA application and I had came across with this error.

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ‘:app-web-toolkit:buildWidgetSet’.

Could not resolve all dependencies for configuration ‘:app-web:compile’.
Could not find any version that matches org.webjars.npm:mime-db:[1.52.0].
Versions that do not match:
- 1.51.0
- 1.50.0
- 1.49.0
- 1.48.0
- 1.47.0
- + 21 more
Searched in the following locations:
- https://repo.cuba-platform.com/content/groups/work/org/webjars/npm/mime-db/maven-metadata.xml
- file:/C:/Users/syamilsyamil/StudioProjects/pbksb/trial_repository/org/webjars/npm/mime-db/maven-metadata.xml
- file:/C:/Users/syamilsyamil/StudioProjects/pbksb/trial_repository/org/webjars/npm/mime-db/
- https://repo.cuba-platform.com/content/groups/premium/org/webjars/npm/mime-db/maven-metadata.xml
Required by:
project :app-web > com.haulmont.addon.grapesjs:grapesjs-web:0.5.3 > org.webjars.npm:github-com-artf-grapesjs-preset-newsletter:0.2.20 > org.webjars.npm:juice:4.3.2 > org.webjars.npm:web-resource-inliner:4.3.4 > org.webjars.npm:request:2.88.2 > org.webjars.npm:mime-types:2.1.35

  • 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.org

BUILD FAILED in 7s

I had rebuild project + Invalidate caches / restart the studio but it doesnt work. Please help me.

Hi,

I have tried Temp fix … added below at web or webToolkit

dependencies {
    compile(webModule)
    compile('org.webjars.npm:mime-types:2.1.34')
}

clean and run -> can start application

Hope it helps while waiting proper fix. :slight_smile:

Regards,
CK

Hi Choon Kit Wan,

It is not working. Do you have other solution.

I too just started to have that error just now.

Is this happening to others as well ?

Read this:

Hi everyone,

I found the solution. Add this line compile(‘org.webjars.npm:mime-types:2.1.34’) under dependencies{} inside configure(webModule) {} in build gradle.

Regards,
Syamil

Thanks for finding the solution!

We have just triggered building of mime-db:1.52.0 webjar artifact on their website https://www.webjars.org, but looks like the publishing process is not yet complete, as the artifact is not yet available through search, see Maven Central Repository Search

When it appears on the search page, it should also be available through repo.cuba-platform.com repo.

Regards,
Konstantin

UPDATE: the previously missed artifact org.webjars.npm:mime-db:1.52.0 is now cached at repo.cuba-platform.com, so all projects should assemble properly.

If you are still experiencing the problem, try to refresh dependencies locally with the following command:

./gradlew --refresh-dependencies clean assemble
1 Like