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 fails to resovle guice #1556

Closed
iocanel opened this issue Feb 6, 2023 · 1 comment
Closed

jbang fails to resovle guice #1556

iocanel opened this issue Feb 6, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@iocanel
Copy link

iocanel commented Feb 6, 2023

Describe the bug
Creating a jbang qcli command that contains quarkus-cli as a dependency result in the command failing to run with:

Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact com.google.inject:guice:no_aop:jar:4.2.2 in central (https://repo.maven.apache.org/maven2)
	at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:48)
	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:401)
	at org.eclipse.aether.util.concurrency.RunnableErrorForwarder.lambda$wrap$0(RunnableErrorForwarder.java:73)
	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:669)
	at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:290)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:408)
	... 38 more
[jbang] If you believe this a bug in jbang, open an issue at https://github.com/jbangdev/jbang/issues

The dependency does exist on central: https://repo1.maven.org/maven2/com/google/inject/guice/4.2.2/

To Reproduce
Steps to reproduce the behavior:

  1. jbang init --template=qcli Reproduce.java
  2. open Reproduce.java
  3. Add //DEPS io.quarkus:quarkus-cli:${quarkus.version:2.11.2.Final}@jar
  4. exit the editor
  5. jbang --verbose Reproduce.java

Expected behavior
The command should run

JBang version
0.102.0

@iocanel
Copy link
Author

iocanel commented Feb 6, 2023

The root cause is in quarkus. Closing

@iocanel iocanel closed this as completed Feb 6, 2023
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