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

Invalid OSGi meta-data #1340

Closed
fipro78 opened this issue Nov 28, 2022 · 0 comments · Fixed by #1357
Closed

Invalid OSGi meta-data #1340

fipro78 opened this issue Nov 28, 2022 · 0 comments · Fixed by #1357

Comments

@fipro78
Copy link

fipro78 commented Nov 28, 2022

I am trying to connect to a Neo4j database in an OSGi application. Unfortunately the generated meta-data is invalid. It contains the following entry:

Require-Capability: osgi.ee;filter:="(osgi.ee=UNKNOWN)"

Neo4j Version: 5.2.0 Community
Neo4j Mode: Single instance
Driver version: Java driver 5.2.0
Operating System: Linux in Docker

I suppose the reason is the usage of a quite old maven-bundle-plugin version 3.5.0. This should be updated to the most current version, which seems to be 5.1.8 or even directly switch to the most current biz.aQute.bnd:bnd-maven-plugin:6.3.1. The later might be more work but pays out in the long run as it is better maintained nowadays.

injectives added a commit to injectives/neo4j-java-driver that referenced this issue Dec 16, 2022
Fixes: neo4j#1340

With newer version `Import-Package` includes the following additional entires:
```
java.io,
java.lang,
java.lang.annotation,
java.lang.invoke,
java.lang.reflect,
java.lang.runtime,
java.net,
java.nio.charset,
java.security,
java.security.cert,
java.time,
java.time.format,
java.time.temporal,
java.util,
java.util.concurrent,
java.util.concurrent.atomic,
java.util.concurrent.locks,
java.util.function,
java.util.logging,
java.util.regex,
java.util.stream
```

In addition, the is a new `Build-Jdk-Spec: 17` entry and the `Created-By` includes the plugin version. The `Require-Capability` and `Tool` are also updated.
injectives added a commit that referenced this issue Dec 20, 2022
Fixes: #1340

With newer version `Import-Package` includes the following additional entires:
```
java.io,
java.lang,
java.lang.annotation,
java.lang.invoke,
java.lang.reflect,
java.lang.runtime,
java.net,
java.nio.charset,
java.security,
java.security.cert,
java.time,
java.time.format,
java.time.temporal,
java.util,
java.util.concurrent,
java.util.concurrent.atomic,
java.util.concurrent.locks,
java.util.function,
java.util.logging,
java.util.regex,
java.util.stream
```

In addition, the is a new `Build-Jdk-Spec: 17` entry and the `Created-By` includes the plugin version. The `Require-Capability` and `Tool` are also updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant