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

jbang unable to find artifact org.graalvm.polyglot:js-community:jar:24.1.2 in maven central #1938

Open
0mega28 opened this issue Mar 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@0mega28
Copy link

0mega28 commented Mar 6, 2025

Describe the bug
jbang is unable to download the js-community jar from maven central.

To Reproduce
Here is the code, just do jbang Script.java

///usr/bin/env jbang "$0" "$@" ; exit $?

//DEPS org.graalvm.polyglot:polyglot:24.1.2
//DEPS org.graalvm.polyglot:js-community:24.1.2

import org.graalvm.polyglot.Context;

public class Script {
    public static void main(String[] args) {
        System.out.println(Context.newBuilder("js").build());
    }
}

Expected behavior
Jbang should be able to run the code

JBang version
[jbang] [0:179] jbang version 0.124.0
Cache: /Users/sakgugup/.jbang/cache
Config: /Users/sakgugup/.jbang
Repository: /Users/sakgugup/.m2/repository
Java: /Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home [21.0.6]
OS: mac
Arch: aarch64
Shell: bash
0.124.0

Additional context
Getting the following error

[jbang] Resolving dependencies...
[jbang]    org.graalvm.polyglot:polyglot:24.1.2
[jbang]    org.graalvm.polyglot:js-community:24.1.2
[jbang] [ERROR] Could not resolve dependencies: The following artifacts could not be resolved: org.graalvm.polyglot:js-community:jar:24.1.2 (absent): Could not find artifact org.graalvm.polyglot:js-community:jar:24.1.2 in central (https://repo1.maven.org/maven2/)
[jbang] Run with --verbose for more details. The --verbose must be placed before the jbang command. I.e. jbang --verbose run [...]
@0mega28 0mega28 added the bug Something isn't working label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant