Hello,
i followed this guid to hide the name and email field of issue collector.
https://confluence.atlassian.com/jirakb/how-to-remove-name-and-email-from-the-issue-collector-343834801.html
I compress the folder after my customization with this command:
jar cfM jira-issue-collector-plugin-2.0.26.jar META-INF/MANIFEST.MF jira-issue-
collector-plugin-2.0.26/
When I upload the jar file via the “Manage-Add Ons” page, I get this error:
Could not install the file jira-issue-collector-plugin-2.0.26.jar. Check that the file is valid.
When I upload the original jar file, I do not get any errors.
The error is probably when recompressing the folder
Does anyone know how to do it right?
Cheers,
Marcel
Hello @mgattinger,
I tried running
jar cfM jira-issue-collector-plugin-2.0.26.jar META-INF/MANIFEST.MF jira-issue-
collector-plugin-2.0.26/
at the same level as the top-level folder i.e. where the unzipped jira-issue-
collector-plugin-2.0.23/ is located (I used a different JAR version but that should be fine), and I was able to replicate your issue.
Using a decompiler, I saw that the command archives the whole folder and I believe this is not what we want
What I did to fix is to go inside jira-issue-collector-plugin-2.0.23/ and run
jar cfM jira-issue-collector-plugin-2.0.23.jar .
I did not pass the manifest since I did not change anything there and I am fine with the existing one. Once done, I checked the contents of the JAR
Since it looks good, I tried installing it and was able to install as expected.
Hope this helps.
Ian