quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.54k stars 2.61k forks source link

Dev UI 2 - generate-code gets maven-metadata.xml for Vaadin components #31932

Closed gsmet closed 1 year ago

gsmet commented 1 year ago

Very often when I build a Quarkus application with 3.0.0.Alpha6, I end up with the following log. I'm not sure this is a behavior we really want to keep.

[INFO] --- quarkus-maven-plugin:3.0.0.Alpha6:generate-code (default) @ quarkus-github-lottery ---
Downloading from central: https://repo.maven.apache.org/maven2/org/mvnpm/at/lit/reactive-element/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/mvnpm/at/lit/reactive-element/maven-metadata.xml (339 B at 1.9 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/mvnpm/at/lit-labs/ssr-dom-shim/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/mvnpm/at/lit-labs/ssr-dom-shim/maven-metadata.xml (340 B at 16 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/mvnpm/lit-element/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/mvnpm/lit-element/maven-metadata.xml (327 B at 17 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/mvnpm/lit-html/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/mvnpm/lit-html/maven-metadata.xml (324 B at 18 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/mvnpm/at/types/trusted-types/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/mvnpm/at/types/trusted-types/maven-metadata.xml (338 B at 23 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/mvnpm/at/vaadin/vaadin-usage-statistics/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/mvnpm/at/vaadin/vaadin-usage-statistics/maven-metadata.xml (349 B at 22 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/mvnpm/at/vaadin/vaadin-development-mode-detector/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/mvnpm/at/vaadin/vaadin-development-mode-detector/maven-metadata.xml (358 B at 15 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/mvnpm/at/polymer/polymer/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/mvnpm/at/polymer/polymer/maven-metadata.xml (334 B at 20 kB/s)
gsmet commented 1 year ago

/cc @phillip-kruger

melloware commented 1 year ago

I have noticed this too and wasn't sure if it was grabbing snapshots or something?

phillip-kruger commented 1 year ago

This is because the upstream npm libraries use version ranges in their dependencies. So maven needs to check the metadata for the correct version. We can get around it by just including the dependencies with a set version (that is probably better anyway). I'll have a look at doing that soon.