vaadin / base-starter-flow-quarkus

A project base/example for using Vaadin with Quarkus
The Unlicense
38 stars 22 forks source link

> Could not find any version that matches org.mvnpm:lit:[3.1.3,3.2). #203

Open Fedox-die-Ente opened 1 month ago

Fedox-die-Ente commented 1 month ago

I just downloaded the gradle base and tried to run it, and im getting this error:

Could not resolve all files for configuration ':quarkusProdRuntimeClasspathConfigurationDeployment'. Could not find any version that matches org.mvnpm:lit:[3.1.3,3.2). Versions that do not match: 2.0.1 Searched in the following locations:

mcollovati commented 1 month ago

I could not reproduce the issue neither in development nor production mode. I tested with both Vaadin 24.6 and 24.7 and running from terminal and IDE. The application started correctly in every case.

Did you apply any changes to the gradle build? How do you started the application? With ./gradlew from the command line or from the IDE?

I cannot see the quarkusProdRuntimeClasspathConfigurationDeployment task run. Can you please post the full build log?

Fedox-die-Ente commented 1 month ago

I have not made any changes to the build.gradle, I just use the terminal command ./gradlew quarkusDev (As it is said in the ReadME)

FAILURE: Build failed with an exception.

BUILD FAILED in 20s 3 actionable tasks: 1 executed, 2 up-to-date

mcollovati commented 1 month ago

It could be a Gradle cache issue. You can try ./gradlew quarkusDev --refresh-dependencies or deleting ~/.gradle/caches/

somashaker23 commented 1 month ago

The problem is reported at https://github.com/mvnpm/mvnpm/issues/20500 and https://github.com/lit/lit/issues/4973.

Fedox-die-Ente commented 1 month ago

I fixed it with

configurations.configureEach {
    resolutionStrategy.cacheChangingModulesFor 60, "minutes"
    resolutionStrategy.dependencySubstitution {
        // avoids conflicts building uber-jars, doesn't matter about the version since it will
        // will be transitively enforced by quarkus-bom (but 1.0.0.Final is the right version).
        substitute module('commons-logging:commons-logging') using module("org.jboss.logging:commons-logging-jboss-logging:1.0.0.Final")
        substitute module('org.mvnpm:lit:[3.1.3,3.2)') using module("org.mvnpm:lit:3.2.1")
    }
}
Fedox-die-Ente commented 1 month ago

I have a new problem. Quarkus is running, but the website is stuck at "Building front-end development bundle" Image