-
Notifications
You must be signed in to change notification settings - Fork 188
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
[Maven-Target] OSGi-metadata generation fails for artifact without MANIFEST.MF #2394
Comments
Correct.
Because Maven target location only supports:
This is sadly not a jar file but a zip file that is named jar... |
But Oracle's Java-17 JAR File Specification says:
Furthermore the javadoc of
With all of that I think just a zip, which is named jar, with properly located class-files is already a valid jar, even if it does not have a Manifest. |
The But as wrapping is actually something that should be avoided, it is not completely "forbidden" to wrap such content (beside that |
@HannesWell I plan Tycho 3.0.5 release so if you want to contribute a fix it might be worth to include it there as well. |
I saw that #2431 changes a lot in the affected area and I have the impression that it already fixes this case? |
Ye I did this for 4.x, but you might want to include it in 3.x as well (only the manifest part), but I would leave this up to you :-) |
For Maven artifacts used in a Maven target location that don't contain any MANIFEST.MF the Target-Platform resolution fails.
The reason seems to be:
tycho/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/MavenTargetDefinitionContent.java
Lines 176 to 197 in b24f95d
I wonder why the case of
BundlesAction.createBundleDescription(bundleLocation)
returning null is not just handled like if thesymbolicName
of that description is null (i.e. just generated the OSGi-metadata)?One example where this happens is:
The text was updated successfully, but these errors were encountered: