can tycho also quickly rewrite (change the manifest) of an jar that it wants to install? #5150
jcompagner
started this conversation in
General
Replies: 1 comment 1 reply
-
Like with every other software bug you should report it / help fixing and ask for a new release
Download the jar and modify the manifest as you like or https://tycho.eclipseprojects.io/doc/latest/tycho-wrap-plugin/wrap-mojo.html |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently through the bnd tool tycho already generates correct manifest entries for a mvn jar that is not OSGi aware/configured.
What if a jar is that way? but it is not correctly done?
see my case here: apache/logging-log4j2#3787
the log4j-jakarta-web says it depends on jakarta [5.0,6.0) so that jar suddenly forces our bundles that depends just on log4j-core to use jakarta 5.0 but we are on 6.1 (build on top of tomcat 11)
because our bundle has an import jakarta.servlet version 6.1
log4j core where it also depends on has no jakarta.servlet stuff
but if we install also log4j-jakarta-web then log4j core is a Host of that fragment and then suddenly the classloader of that fragment is merged with the one of log4j core.. Then suddenly means that log4j core imports jakarta [5.0,6.0)
so installing that fragment suddenly forces us to use a lower jakarta.servlet..
But that log4j web jar shouldn't force that.. that runs fine on newer versions
So what i would like if i can just create a wrapped.xxxx one or something that i can adjust the import..
Beta Was this translation helpful? Give feedback.
All reactions