Jmix 1.6 image build - could not download jmix-ui-1.6.0.jar and other libs

Dear Jmix team,

during Jmix 1.6 application image build I have problem with downloading libraries and thus the build fails.

This is part of the build logs:

$ ./gradlew bootBuildImage -Penv=staging -PpremiumRepoUser=$JMIX_PREMIUM_REPO_USER -PpremiumRepoPass=$JMIX_PREMIUM_REPO_PASS
Downloading https://services.gradle.org/distributions/gradle-8.0.2-bin.zip
...........10%............20%............30%............40%............50%............60%...........70%............80%............90%............100%
Welcome to Gradle 8.0.2!
Here are the highlights of this release:
 - Improvements to the Kotlin DSL
 - Fine-grained parallelism from the first build with configuration cache
 - Configurable Gradle user home cache cleanup
For more details see https://docs.gradle.org/8.0.2/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'kis3'.
> Could not resolve all files for configuration ':widgets'.
   > Could not download vaadin-client-8.14.3-4-jmix.jar (com.vaadin:vaadin-client:8.14.3-4-jmix)
      > Could not get resource 'https://nexus.jmix.io/repository/public/com/vaadin/vaadin-client/8.14.3-4-jmix/vaadin-client-8.14.3-4-jmix.jar'.
         > Premature end of Content-Length delimited message body (expected: 3,195,483; received: 835,107)
   > Could not download jmix-ui-1.6.0.jar (io.jmix.ui:jmix-ui:1.6.0)
      > Could not get resource 'https://nexus.jmix.io/repository/public/io/jmix/ui/jmix-ui/1.6.0/jmix-ui-1.6.0.jar'.
         > Premature end of Content-Length delimited message body (expected: 4,408,433; received: 818,723)
   > Could not download vaadin-server-8.14.3-4-jmix.jar (com.vaadin:vaadin-server:8.14.3-4-jmix)
      > Could not get resource 'https://nexus.jmix.io/repository/public/com/vaadin/vaadin-server/8.14.3-4-jmix/vaadin-server-8.14.3-4-jmix.jar'.
         > Premature end of Content-Length delimited message body (expected: 2,797,390; received: 818,723)
* Try:

Even try to just download individual jar file with wget fails:

wget https://nexus.jmix.io/repository/public/io/jmix/ui/jmix-ui/1.6.0/jmix-ui-1.6.0.jar

2024-09-08 10:50:30 (848 KB/s) - Read error at byte 65059/4408433 (Error decoding the received TLS packet.). Retrying.

Maybe I hit some sunday regular service window?

Thanks for the information.

Ondrej Galik

1 Like

Build from global.repo.jmix.io works fine. Is there any suggestion which repo (when not using private mirror) to use? Thanks.

@ondrej.galik I am experiencing similar issues right now.

https://forum.jmix.io/t/how-to-migrate-from-1-5-5-to-1-6/5469/11

I wonder, what the correct repository actually is.

Hi

Actually both options are valid.
global.repo.jmix.io should have greater availablity in general, but it doesn’t contain SNAPSHOT and RC (release candidate) builds. So if you are using only stable Jmix builds, then global repository is preferable.

2 Likes

Thank you!