-
Notifications
You must be signed in to change notification settings - Fork 31
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
Provided dependencies from imported BOM are not correctly calculated on hover #347
Comments
Do you think you could create a minimal reproducer for this issue (with 1 parent BOM and 1 consumer and just 1 dependency) in order to facilitate debug and even to include it as a test case directly.
In practice, your IDE is using the embedded OpenJDK 17 packaged for Eclipse RCP applications by Eclipse JustJ project. |
Sure, let's give it a try. I have created this project in my repo, eclipse-bom-tester It has a child pom that has a parent pom which resides inside the parent folder. Although you asked me for just one dependency I have included 2 because I found another issue that is likely related to this one. In short:
You are correct. This is unneeded info I just copied from another issue of mine, where the version is relevant and I am using an external JDK for runtime. I will remove it from he original issue. |
The merged PR improves some cases but doesn't fix the whole issue of showing managed version. Let's reopen. |
…ulated on hover eclipse-lemminx#347 JUnit for the version defined with property variable in parent pom.xml
…on hover eclipse-lemminx#347 A fix for the case with the version defined with property variable in parent pom.xml and JUnit test case
…on hover eclipse-lemminx#347 A fix for the case with the version defined with property variable in parent pom.xml and JUnit test case
…on hover #347 A fix for the case with the version defined with property variable in parent pom.xml and JUnit test case
Description
Hello there,
In Eclipse IDE for Enterprise Java and Web Developers 2022-12 the provided dependencies that are managed by a BOM import declared in its POM or a parent POM are not correctly calculated.
The editor, on hover, will state that the managed on which is not the one declared on the import dependency, but some other (I haven't figured which one it is picking).
If, however, we
Ctrl+click
on it, to navigate to the POM, it will navigate to the correct version.This seems to happen only on provided dependencies and not on compile, as the latter are correctly calculated when the imported BOM is present.
Steps to reproduce
I have prepared a sample application that has a very simple Payara Micro application
It can be found here
This app does nothing special. It has a Jakarta REST endpoint but that is just for show.
mvn clean install
Ctrl+click
the jakartaee-api dependency it will navigate to the correct 8.0.0 pomCtrl-clicking
them, it should navigate to the artifact POM, as it is doing right now.Environment
The text was updated successfully, but these errors were encountered: