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

No versions available for com.hashicorp:cdktf:jar when running jsii-pacmak #2996

Closed
1 task
hansbarnard opened this issue Jul 7, 2023 · 5 comments
Closed
1 task
Labels
bug Something isn't working confirmed independently reproduced by an engineer on the team language/java priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. waiting-for-3rd-party-fix

Comments

@hansbarnard
Copy link

Expected Behavior

When running jsii-pacmak including java as a target, a java jar package should be successfully generated for my constructs.

Actual Behavior

When running jsii-pacmak I get the following error:
[ERROR] Failed to execute goal on project ipidp: Could not resolve dependencies for project com.clarivate:ipidp:jar:0.1.44: Failed to collect dependencies at com.hashicorp:cdktf-provider-aws:jar:15.0.0 -> com.hashicorp:cdktf:jar:[0.17.0,0.18.0): No versions available for com.hashicorp:cdktf:jar:[0.17.0,0.18.0) within specified range -> [Help 1]

The packaging tool downloads the metadata file from maven central:
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/com/hashicorp/cdktf/maven-metadata.xml (19 kB at 326 kB/s)

However, the file maven-metadata.xml does not contain any version of this jar for 0.17.0 or above. Instead it contains:
0.15.0-pre.41

Steps to Reproduce

  1. run jsii-pacmak with java as a target.

Versions

jsii: 1.84.0
cdktf: 0.17.0

Providers

No response

Gist

No response

Possible Solutions

This used to work fine until yesterday. I suspect the metadata file was incorrectly updated.

Workarounds

None

Anything Else?

No response

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@hansbarnard hansbarnard added bug Something isn't working new Un-triaged issue labels Jul 7, 2023
@xiehan xiehan added waiting-for-3rd-party-fix language/java confirmed independently reproduced by an engineer on the team priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. and removed new Un-triaged issue labels Jul 12, 2023
@xiehan
Copy link
Member

xiehan commented Jul 12, 2023

We're aware of the issue and this has happened a few times before in the past, most recently in January 2023; for some reason the maven-metadata.xml was reverted to an old cached version and as far as we know we didn't do anything to trigger that -- it seems to have happened on Maven's side. Unfortunately that means we're also dependent on them to fix it. We've opened a high-priority ticket with them so hopefully this will be addressed soon.

@Zman94
Copy link

Zman94 commented Jul 19, 2023

Hello. Have there been any updates to this? Is the Maven ticket publicly available?

@hansbarnard
Copy link
Author

I have not tested but I believe it has been fixed. At least I saw the maven-metadata.xml file now contains all the versions.

@hansbarnard
Copy link
Author

I've tested and for me it is working now.

@github-actions
Copy link
Contributor

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working confirmed independently reproduced by an engineer on the team language/java priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. waiting-for-3rd-party-fix
Projects
None yet
Development

No branches or pull requests

3 participants