[Java] Missing Constraint: Require-Bundle for classes in common.jar
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.
Hi, this is your first issue in the Apache TsFile project. Thanks for your report. Welcome to join the community!
We also provide the jar-with-dependencies, you can take a try.
https://repo1.maven.org/maven2/org/apache/tsfile/tsfile/2.0.3/
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.
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.