Bug 711861

Summary: Packaged jar missing OSGi missing data
Product: [Fedora] Fedora Reporter: Abhishek Bhatnagar <abhatnag>
Component: args4jAssignee: Jaromír Cápík <jcapik>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: abhatnag, akurtako, java-sig-commits, jcapik, ovasik, sgehwolf
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-16 17:05:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Abhishek Bhatnagar 2011-06-08 18:57:15 UTC
Description of problem:
The manifest of the rpm located at http://kojipkgs.fedoraproject.org/packages/args4j/2.0.16/3.fc16/noarch/args4j-2.0.16-3.fc16.noarch.rpm does not contain any OSGi metadata.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Download http://kojipkgs.fedoraproject.org/packages/args4j/2.0.16/3.fc16/noarch/args4j-2.0.16-3.fc16.noarch.rpm
2. Install rpm
3. locate rpm: rpm -ql args4j | grep jar
4. unpackage jar: jar xf /usr/share/java/args4j.jar
5. look into manifest: cat META-INF/MANIFEST.MF

Actual results:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: mockbuild
Build-Jdk: 1.6.0_22


Expected results:
OSGi metadata

Additional info:

Comment 1 Alexander Kurtakov 2011-06-09 12:47:22 UTC
There are 2 options for resolving the problem:
* easy one - Get the manifest from http://www.eclipse.org/downloads/download.php?r=1&file=/tools/orbit/downloads/drops/R20110523182458/repository/plugins/org.kohsuke.args4j_2.0.12.v200910131500.jar and inject it into the jar
* correct one - modify the pom.xmls to change packaging type to bundle so osgi manifests are properly generated, verify them with the eclipse manifest and push the patch upstream

Comment 2 Jaromír Cápík 2011-06-13 17:42:32 UTC
Hello Abhishek.

I've just created a new release (2.0.16-4).
http://kojipkgs.fedoraproject.org/packages/args4j/2.0.16/4.fc16/noarch/args4j-2.0.16-4.fc16.noarch.rpm

Please, test it and let me know.

Thanks in advance.

Regards,
Jaromir.

Comment 3 Abhishek Bhatnagar 2011-06-14 18:15:04 UTC
(In reply to comment #2)
> Hello Abhishek.
> 
> I've just created a new release (2.0.16-4).
> http://kojipkgs.fedoraproject.org/packages/args4j/2.0.16/4.fc16/noarch/args4j-2.0.16-4.fc16.noarch.rpm
> 
> Please, test it and let me know.
> 
> Thanks in advance.
> 
> Regards,
> Jaromir.

thanks Jaromir.
will test out later on today and get back to you.

Comment 4 Abhishek Bhatnagar 2011-06-16 17:05:20 UTC
Works great!

thanks!

(In reply to comment #2)
> Hello Abhishek.
> 
> I've just created a new release (2.0.16-4).
> http://kojipkgs.fedoraproject.org/packages/args4j/2.0.16/4.fc16/noarch/args4j-2.0.16-4.fc16.noarch.rpm
> 
> Please, test it and let me know.
> 
> Thanks in advance.
> 
> Regards,
> Jaromir.