-
Notifications
You must be signed in to change notification settings - Fork 116
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
Dependency is not resolved when in non-public nexus (causing ctrl-hover not working) #959
Comments
Can you please go to the Problems view and show the full line with details for the marker you're seeing? The error may come from m2e, or from the underlying LemMinX langage server used by the editor. The problem details will help to figure that out. |
Non-resolvable parent POM for com.retail-sc.commons:rsc-base-types:${revision}: Could not find artifact com.retail-sc:maven-base:pom:2020.9.1-1 in central (https://repo.maven.apache.org/maven2) Type is "Language Servers" |
Any updates on the problem? Same situation here, we have an internal repo configured in a profile activated by properties inside our settings.xml. .log
|
If you want to push this forward, the best would be to provide a test or at least a reproducer project. |
Hi, I don't have an exact reproducer, but if it helps, here are some related problems observed: If there is an error downloading an artifact from a repository and the artifact is successfully downloaded from another repository thereafter (because of changing available repositories in settings.xml), it looks like the m2e's (or LemMinX's?) language server is not able to cope with this until I restart the whole Eclipse. I.e. no matter what I do, I keep getting this error:
I think this differs from the "good old days" (2020 - 2021?) before the LS got introduced, when it was enough just to remove the infamous Also, I'm not sure if this issue cannot be somehow behind the LS slow start: eclipse-lemminx/lemminx-maven/issues/406. On the project I had the problem described above, it took even about 20 minutes (!) until getting rid of "Could not get hover information due to timeout after 1000 miliseconds" and Eclipse finally started to show hovers in the POM editor. Interestingly enough, the LS Java process used less then 0,5% CPU for all that time - some temporary deadlock, networking issue? UPDATE: The trick with turning OFF "Preferences => XML (Wild Web Developer) => Validation & Resolution => Enable Validation" (as mentioned in the linked issue) doesn't help either. |
We have some dependencies and parents in our non-public available nexus repository and the m2e plugin does not find the parent even the repository is in my user settings.xml
The com\retail-sc\maven-base\2020.9.1-1 is fine, too _remote.repositories
Failure even after "Force Update Snapshots"
mvn compile works fine on console
![image](https://user-images.githubusercontent.com/50696194/193401637-b6053415-fce2-4525-83a6-a7941accfe9b.png)
Workaround is to force reading all artifacts with a mirror statement:
(Drawback is that our nexus would need to handle all traffic and all artifacts)
With mirror the error is gone and the Ctrl-Hover is working as expected:
![image](https://user-images.githubusercontent.com/50696194/193401931-a71ba56c-a468-4c14-83ac-59e81fd65ed3.png)
Eclipse Version: 2022-06 (4.24.0)
Build id: 20220609-1112
The text was updated successfully, but these errors were encountered: