Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toolbox list weirdness? #140

Open
maxandersen opened this issue Nov 16, 2024 · 1 comment
Open

toolbox list weirdness? #140

maxandersen opened this issue Nov 16, 2024 · 1 comment

Comments

@maxandersen
Copy link

toolbox list io.quarkus gives list of artifacts in io.quarkus. great. including io.quarkus:qute

so i run toolbox list io.quarkus:qute and response is empty.

should it not be list of versions of that artifact?

tried toolbox list io.quarkus:qute:RELEASE but that returned empty too

@cstamas
Copy link
Member

cstamas commented Nov 16, 2024

I have this:

[cstamas@blondie toolbox (main)]$ jbang toolbox@maveniverse
Toolbox 0.3.6 (MIMA Runtime 'standalone-static' version 2.4.20)

          Maven version 3.9.9
                Managed true
                Basedir /home/cstamas/Worx/maveniverse/toolbox
                Offline false

             MAVEN_HOME /home/cstamas/.sdkman/candidates/maven/current
           settings.xml /home/cstamas/.sdkman/candidates/maven/current/conf/settings.xml
         toolchains.xml /home/cstamas/.sdkman/candidates/maven/current/conf/toolchains.xml

              USER_HOME /home/cstamas/.m2
           settings.xml /home/cstamas/.m2/settings.xml
  settings-security.xml /home/cstamas/.m2/settings-security.xml
       local repository /home/cstamas/.m2/repository-oss

               PROFILES
                 Active [oss-development]
               Inactive []

    REMOTE REPOSITORIES
                        central (https://repo.maven.apache.org/maven2/, default, releases)
prompt> list io.quarkus
...
io.quarkus:quarkus-websockets-next-parent
io.quarkus:quarkus-websockets-parent
io.quarkus:qute
io.quarkus:resteasy
io.quarkus:security
io.quarkus:vertx
prompt> list io.quarkus.qute
io.quarkus.qute:qute-core
io.quarkus.qute:qute-generator
io.quarkus.qute:qute-mutiny
io.quarkus.qute:qute-parent
io.quarkus.qute:qute-rxjava
prompt> list io.quarkus.qute:qute-core
io.quarkus.qute:qute-core:1.1.0.CR1
io.quarkus.qute:qute-core:1.1.0.Final
...

Explanation: list command is "best effort", given Maven remote repository does not define list operation (unless you are on S3 remote storage or alike). Also, list is based on (quite limited) Search API RR backend. This backend is "best effort" as (unless full GAV given) relies on heuristic to figure out G and A. When listing GAV it is precise, as it relies on repository metadata, but on G and GA level, it is heuristic (guesswork).

In short, when doing G list it have no idea what next level directory is (next G segment or A), and the guesswork failed as it assumed G=io.quarkus and A=qute, while it is in fact G=io.quarkus.qute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants