Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jackson-core 2.14.0-rc2 requires OSGi bnd artefacts

See original GitHub issue


The Spring Framework is trying to upgrade to Jackson 2.14.0, so that we can set it as our baseline for the upcoming 6.0.x branch, and use the ByteBufferFeeder introduced through #478 (thanks!). Unfortunately, when upgrading from 2.13.4 to 2.14.0-rc2 we run into the following warning:

warning: Cannot find annotation method 'value()' in type 'ServiceProvider': class file for aQute.bnd.annotation.spi.ServiceProvider not found

(line break added for clarity)

Because we use -Werror during compilation, this warning breaks our build. Of course, it can be resolved by adding dependencies to the class path (specifically biz.aQute.bnd:biz.aQute.bnd.annotation and org.osgi:osgi.annotation), or by changing our build to ignore this specific warning.

I still thought it wise to make you aware of this warning, as I am hoping that there is something that can be done, and users can use Jackson 2.14 without getting warnings about missing OSGi artefacts.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

poutsmacommented, Oct 31, 2022

I can confirm that this is fixed in 2.14.0-rc3. Thanks!

cowtowncodercommented, Oct 23, 2022

OSGi annotation changes reverted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jackson bundles are missing OSGi's osgi.serviceloader ...
Jackson's bundles are all missing this metadata. In theory, it should just be a ... jackson-core 2.14.0-rc2 requires OSGi bnd artefacts #824.
Read more >
jackson-core » 2.14.0-rc2 - Maven Repository
Repositories, Central. Ranking, #41 in MvnRepository (See Top Artifacts) #3 in JSON Libraries. Used By, 12,170 artifacts ...
Read more >
Version (Jackson-core 2.14.1 API) -
Object that encapsulates versioning information of a component. Version information includes not just version number but also optionally group and artifact ...
Read more >
Resolving Dependencies | bnd - Bndtools
The resolver model is based on technology developed in OSGi since 2006 with ... Requirement – A requirement represents the needs of an...
Read more >
ODL Parent release notes - OpenDaylight Documentation
Declarations of osgi.annotation , osgi.cmpn and osgi.core have been removed. ... The odl-jackson-2.10 feature and artifact were renamed to odl-jackson-2.11 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found