You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by "kenwenzel (via GitHub)" <gi...@apache.org> on 2026/06/18 07:25:33 UTC
[D] Use newer version of org.eclipse.osgi than the bundled one [karaf]
GitHub user kenwenzel created a discussion: Use newer version of org.eclipse.osgi than the bundled one
Is it possible to replace the Equinox bundle (org.eclipse.osgi) with a newer version when using the karaf-maven-plugin?
I have a project that uses latest Eclipse components like org.eclipse.equinox.registry depending on more recent versions.
BTW, when will the first milestone or snapshot release of Karaf 4.5.0 be available?
GitHub link: https://github.com/apache/karaf/discussions/2735
----
This is an automatically sent email for dev@karaf.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@karaf.apache.org
Re: [D] Use newer version of org.eclipse.osgi than the bundled one [karaf]
Posted by "kenwenzel (via GitHub)" <gi...@apache.org>.
GitHub user kenwenzel added a comment to the discussion: Use newer version of org.eclipse.osgi than the bundled one
Thanks! So there is no official support to replace/configure it via karaf-maven-plugin?
GitHub link: https://github.com/apache/karaf/discussions/2735#discussioncomment-17348290
----
This is an automatically sent email for dev@karaf.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@karaf.apache.org
Re: [D] Use newer version of org.eclipse.osgi than the bundled one [karaf]
Posted by "kenwenzel (via GitHub)" <gi...@apache.org>.
GitHub user kenwenzel added a comment to the discussion: Use newer version of org.eclipse.osgi than the bundled one
```
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<finalName>${project.artifactId}</finalName>
<startupFeatures>
<feature>eventadmin</feature>
</startupFeatures>
<bootFeatures>
<feature>wrap</feature>
<feature>aries-blueprint</feature>
<feature>shell</feature>
<feature>feature</feature>
<feature>jaas</feature>
<feature>jaas-deployer</feature>
<feature>ssh</feature>
<feature>bundle</feature>
<feature>config</feature>
<feature>deployer</feature>
<feature>feature</feature>
<feature>management</feature>
<feature>diagnostic</feature>
<feature>instance</feature>
<feature>kar</feature>
<feature>log</feature>
<feature>package</feature>
<feature>service</feature>
<feature>system</feature>
<feature>scr</feature>
<!-- feature>felix-http</feature -->
<feature>net.enilink.platform.karaf.feature</feature>
<!-- feature>net.enilink.platform.workbench.karaf.feature</feature -->
</bootFeatures>
</configuration>
</plugin>
```
GitHub link: https://github.com/apache/karaf/discussions/2735#discussioncomment-17349008
----
This is an automatically sent email for dev@karaf.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@karaf.apache.org
Re: [D] Use newer version of org.eclipse.osgi than the bundled one [karaf]
Posted by "kenwenzel (via GitHub)" <gi...@apache.org>.
GitHub user kenwenzel added a comment to the discussion: Use newer version of org.eclipse.osgi than the bundled one
@jbonofre I've seen that it should be possible by using a "custom" framework. Is this the correct approach?
GitHub link: https://github.com/apache/karaf/discussions/2735#discussioncomment-17361386
----
This is an automatically sent email for dev@karaf.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@karaf.apache.org
Re: [D] Use newer version of org.eclipse.osgi than the bundled one [karaf]
Posted by "kenwenzel (via GitHub)" <gi...@apache.org>.
GitHub user kenwenzel added a comment to the discussion: Use newer version of org.eclipse.osgi than the bundled one
@jbonofre I've tried to use the following `custom.properties`
```
karaf.framework=equinox
karaf.framework.equinox=mvn:org.eclipse.platform/org.eclipse.osgi/3.24.200
```
in combination with:
````
<installedBundles>
<bundle>mvn:org.eclipse.platform/org.eclipse.osgi/3.24.200</bundle>
</installedBundles>
```
Unfortunately, I get the following error:
```
Jul 02, 2026 9:15:52 AM org.apache.karaf.main.Main main
SEVERE: Could not launch framework
java.lang.ClassNotFoundException: # Generated by bnd
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at org.apache.karaf.main.Main.loadFrameworkFactory(Main.java:543)
at org.apache.karaf.main.Main.launch(Main.java:290)
at org.apache.karaf.main.Main.main(Main.java:183)
```
It seems that `Main` tries to use the comment `# Generated by bnd` as class name.
GitHub link: https://github.com/apache/karaf/discussions/2735#discussioncomment-17506393
----
This is an automatically sent email for dev@karaf.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@karaf.apache.org
Re: [D] Use newer version of org.eclipse.osgi than the bundled one [karaf]
Posted by "kenwenzel (via GitHub)" <gi...@apache.org>.
GitHub user kenwenzel added a comment to the discussion: Use newer version of org.eclipse.osgi than the bundled one
OK, I'll take a look.
You don't publish snapshots of Karaf 4.50 already?
GitHub link: https://github.com/apache/karaf/discussions/2735#discussioncomment-17363962
----
This is an automatically sent email for dev@karaf.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@karaf.apache.org
Re: [D] Use newer version of org.eclipse.osgi than the bundled one [karaf]
Posted by "kenwenzel (via GitHub)" <gi...@apache.org>.
GitHub user kenwenzel added a comment to the discussion: Use newer version of org.eclipse.osgi than the bundled one
Found the relevant commit that fixed parsing of comments:
https://github.com/apache/karaf/commit/ea71d6b2baa2ce5435077f24d88158871a766f7b
GitHub link: https://github.com/apache/karaf/discussions/2735#discussioncomment-17507139
----
This is an automatically sent email for dev@karaf.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@karaf.apache.org
Re: [D] Use newer version of org.eclipse.osgi than the bundled one [karaf]
Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
GitHub user jbonofre added a comment to the discussion: Use newer version of org.eclipse.osgi than the bundled one
@kenwenzel yes you can create your own framework feature with the versions you want.
GitHub link: https://github.com/apache/karaf/discussions/2735#discussioncomment-17363949
----
This is an automatically sent email for dev@karaf.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@karaf.apache.org
Re: [D] Use newer version of org.eclipse.osgi than the bundled one [karaf]
Posted by "kenwenzel (via GitHub)" <gi...@apache.org>.
GitHub user kenwenzel edited a comment on the discussion: Use newer version of org.eclipse.osgi than the bundled one
@jbonofre I've tried to use the following `custom.properties`
```
karaf.framework=equinox
karaf.framework.equinox=mvn:org.eclipse.platform/org.eclipse.osgi/3.24.200
```
in combination with:
```
<installedBundles>
<bundle>mvn:org.eclipse.platform/org.eclipse.osgi/3.24.200</bundle>
</installedBundles>
```
Unfortunately, I get the following error:
```
Jul 02, 2026 9:15:52 AM org.apache.karaf.main.Main main
SEVERE: Could not launch framework
java.lang.ClassNotFoundException: # Generated by bnd
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at org.apache.karaf.main.Main.loadFrameworkFactory(Main.java:543)
at org.apache.karaf.main.Main.launch(Main.java:290)
at org.apache.karaf.main.Main.main(Main.java:183)
```
It seems that `Main` tries to use the comment `# Generated by bnd` as class name.
GitHub link: https://github.com/apache/karaf/discussions/2735#discussioncomment-17506393
----
This is an automatically sent email for dev@karaf.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@karaf.apache.org
Re: [D] Use newer version of org.eclipse.osgi than the bundled one [karaf]
Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
GitHub user jbonofre added a comment to the discussion: Use newer version of org.eclipse.osgi than the bundled one
You can override in the plugin. Can you share the plugin goal you are using?
GitHub link: https://github.com/apache/karaf/discussions/2735#discussioncomment-17348303
----
This is an automatically sent email for dev@karaf.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@karaf.apache.org
Re: [D] Use newer version of org.eclipse.osgi than the bundled one [karaf]
Posted by "kenwenzel (via GitHub)" <gi...@apache.org>.
GitHub user kenwenzel closed a discussion: Use newer version of org.eclipse.osgi than the bundled one
Is it possible to replace the Equinox bundle (org.eclipse.osgi) with a newer version when using the karaf-maven-plugin?
I have a project that uses latest Eclipse components like org.eclipse.equinox.registry depending on more recent versions.
BTW, when will the first milestone or snapshot release of Karaf 4.5.0 be available?
GitHub link: https://github.com/apache/karaf/discussions/2735
----
This is an automatically sent email for dev@karaf.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@karaf.apache.org
Re: [D] Use newer version of org.eclipse.osgi than the bundled one [karaf]
Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
GitHub user jbonofre added a comment to the discussion: Use newer version of org.eclipse.osgi than the bundled one
It's updated on main.
4.5.0 is planned for next month.
GitHub link: https://github.com/apache/karaf/discussions/2735#discussioncomment-17348213
----
This is an automatically sent email for dev@karaf.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@karaf.apache.org