[Java] Missing Constraint: Require-Bundle for classes in common.jar
- Dominant language
- Java
- Stars
- 203
- Forks
- 104
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 33
Description
I tried to use TsFile in an Eclipse RCP application using Java 17 and Maven 3.9.9. However, some constraints in the org.apache.tsfile (2.0.2) bundle are missing when launching the “Eclipse Application” run configuration:
Missing constraint: Require-Bundle org.apache.tsfile.enums ; bundle-version="0.0.0 ”
Missing constraint: Require-Bundle org.apache.tsfile.block ; bundle-version="0.0.0 ”
Missing constraint: Require-Bundle org.apache.tsfile.block.column ; bundle-version="0.0.0 ”
This seems to be due to a lack of OSGi definitions in the common-2.0.2.jar manifest.
One workaround is to create a plugin to wrap the two .jar files and re-export everything, but this means having to download and manage the jars manually, which isn't ideal.
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect the manifest in common-2.0.2.jar and compare it with the OSGi requirements reported when launching the Eclipse Application configuration. Start by checking how the org.apache.tsfile bundle is built and packaged with Maven. Done means the published bundle provides the required org.apache.tsfile.enums, org.apache.tsfile.block, and org.apache.tsfile.block.column constraints without manually wrapped jars.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100