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

org.osgi.service.http: Unable to satisfy dependency #969

Closed
jukzi opened this issue Dec 8, 2023 · 8 comments
Closed

org.osgi.service.http: Unable to satisfy dependency #969

jukzi opened this issue Dec 8, 2023 · 8 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@jukzi
Copy link
Contributor

jukzi commented Dec 8, 2023

The jenkins console log contains 525 times the same warning https://ci.eclipse.org/platform/job/eclipse.platform/job/master/lastBuild/console

[WARNING] Problems resolving provisioning plan.: [Unable to satisfy dependency from org.osgi.service.http 1.2.2.202109301733 to java.package; javax.servlet [2.1.0,3.0.0).; Unable to satisfy dependency from org.osgi.service.http 1.2.2.202109301733 to java.package; javax.servlet.http [2.1.0,3.0.0).; Unable to satisfy dependency from org.osgi.service.http.whiteboard 1.1.1.202109301733 to osgi.contract; (&(osgi.contract=JavaServlet)(version=3.1.0)).]
Unable to satisfy dependency from org.osgi.service.http 1.2.2.202109301733 to java.package; javax.servlet [2.1.0,3.0.0).;
Unable to satisfy dependency from org.osgi.service.http 1.2.2.202109301733 to java.package; javax.servlet.http [2.1.0,3.0.0).;
Unable to satisfy dependency from org.osgi.service.http.whiteboard 1.1.1.202109301733 to osgi.contract; (&(osgi.contract=JavaServlet)(version=3.1.0)).

Can someone solve that? I also get a similar warning when i start workspace locally
minor: why is it printed so many times?

@jukzi jukzi added bug Something isn't working dependencies Pull requests that update a dependency file labels Dec 8, 2023
@merks
Copy link
Contributor

merks commented Dec 8, 2023

It would be so nice to have warning free builds. After all, a warning is a cry to be fixed.

@laeubi
Copy link
Contributor

laeubi commented Dec 9, 2023

Can someone solve that?

Se the current ongoing work here

why is it printed so many times?

Because it happens on each project when it gets resolved and for each platform and then maybe when tests are resolved as well, this is similar to another warning you you repeatedly in the logs

WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.eclipse.ant.internal.core.ant.InternalAntRunner (file:/home/jenkins/agent/workspace/eclipse.platform_master/ant/org.eclipse.ant.tests.ui/target/work/configuration/org.eclipse.osgi/59/0/.cp/lib/antsupportlib.jar)
WARNING: Please consider reporting this to the maintainers of org.eclipse.ant.internal.core.ant.InternalAntRunner
WARNING: System::setSecurityManager will be removed in a future release

@iloveeclipse
Copy link
Member

Can we please either fix these maven warnings or to disable the "quality" gate?
It makes no sense to keep reporting errors that are not caused by PR's on every PR.

@laeubi
Copy link
Contributor

laeubi commented Dec 12, 2023

Feel free to contribute if you want to fix the issue reported here:

Anyways these reported here are not "maven" warnings but warnings reported by P2 because the resolution might be incomplete, Tycho just forwards these warnings to the user so they got not lost unnoticed.

Beside that the ones that are reported at the build you recently referenced are cause because platform+platform.ui has heavy cyclic dependencies and test might give different results as they do not specify the reactor dependencies directly but only indirect, what might be an issue that one could/should fix, se the message for details about the offending plugins.

@jukzi
Copy link
Contributor Author

jukzi commented Dec 12, 2023 via email

@iloveeclipse
Copy link
Member

Feel free to contribute if you want to fix the issue reported here

I've checked this code and I'm not qualified to work on that.

I vote disable quality gate for maven until issue is fixed if ETA not soon

I second that. I can't see these errors anymore (for no obvious reason).

jukzi pushed a commit to jukzi/eclipse.platform that referenced this issue Dec 12, 2023
jukzi pushed a commit that referenced this issue Dec 12, 2023
@laeubi
Copy link
Contributor

laeubi commented Dec 13, 2023

I second that. I can't see these errors anymore (for no obvious reason).

If something is unclear please ask, these warnings won't go away by just ignoring them. This issue and the linked one are about multiple warnings about "Unable to satisfy dependency from org.osgi.service.http 1.2.2.202109301733 to", this is already fixed here:

so one should only ever see this warning once per project and as such it should never be any "new" (in comparison to the reference build).

@HannesWell
Copy link
Member

This is now fixed temporarily with eclipse-platform/eclipse.platform.releng.aggregator#1672 and permanently with eclipse-equinox/equinox#403 so #1007 can be reverted.

HannesWell added a commit to HannesWell/eclipse.platform that referenced this issue Dec 20, 2023
HannesWell added a commit to HannesWell/eclipse.platform that referenced this issue Dec 20, 2023
akurtakov pushed a commit to HannesWell/eclipse.platform that referenced this issue Jan 4, 2024
Michael5601 pushed a commit to CodeLtDave/eclipse.platform that referenced this issue Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

5 participants