tsfile icon indicating copy to clipboard operation
tsfile copied to clipboard

[Java] Missing Constraint: Require-Bundle for classes in common.jar

Open Inky19 opened this issue 6 months ago • 4 comments

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.

Inky19 avatar May 27 '25 15:05 Inky19

Hi, this is your first issue in the Apache TsFile project. Thanks for your report. Welcome to join the community!

github-actions[bot] avatar May 27 '25 15:05 github-actions[bot]

We also provide the jar-with-dependencies, you can take a try.

https://repo1.maven.org/maven2/org/apache/tsfile/tsfile/2.0.3/

HTHou avatar May 28 '25 01:05 HTHou

Thank you for your reply @HTHou , I didn't see this version. It might work, I'll have to try it but it hasn't been mirrored on our local maven repo so I can't test it at the moment. It might take a few days be able to test it. I'll send an update as soon as possible.

Inky19 avatar May 28 '25 11:05 Inky19

I checked the jar-with-dependencies this morning, but it is not found by Eclipse either. The manifest in this jar is empty, so it doesn't even see the base plugin org.apache.tsfile.

Inky19 avatar Jun 02 '25 10:06 Inky19