Bug 758586

Summary: Doesn't work at all
Product: [Fedora] Fedora Reporter: Alexander Kurtakov <akurtako>
Component: maven-plugin-bundleAssignee: Jaromír Cápík <jcapik>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: urgent    
Version: rawhideCC: java-sig-commits, jcapik, ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-07 17:00:41 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 Alexander Kurtakov 2011-11-30 06:47:45 UTC
While building felix-osgi-support the build failed with the following problem:
maven-bundle-plugin:2.3.5:bundle (default-bundle) @ geronimo-osgi-registry ---
java.lang.NullPointerException
	at aQute.lib.spring.XMLType.getTransformer(XMLType.java:105)
	at aQute.lib.spring.XMLType.<init>(XMLType.java:24)
	at aQute.lib.spring.XMLTypeProcessor.process(XMLTypeProcessor.java:28)
	at aQute.lib.spring.SpringXMLType.getTypes(SpringXMLType.java:23)
	at aQute.lib.spring.XMLTypeProcessor.analyzeJar(XMLTypeProcessor.java:11)
	at aQute.lib.osgi.Analyzer.analyze(Analyzer.java:124)
	at aQute.lib.osgi.Builder.analyze(Builder.java:304)
	at aQute.lib.osgi.Analyzer.calcManifest(Analyzer.java:295)
	at aQute.lib.osgi.Builder.build(Builder.java:70)
	at org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlugin.java:480)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:344)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:261)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:252)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:321)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:158)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

Which is showing serious problem in maven-bundle-plugin. Please fix ASAP as it is blocking a lot of other work.

Comment 1 Jaromír Cápík 2011-12-02 14:58:20 UTC
Please, update aqute-bndlib to 1.43.0-2 : 

http://koji.fedoraproject.org/koji/taskinfo?taskID=3557782

and test that again.

Comment 2 Jaromír Cápík 2011-12-07 17:00:41 UTC
I tested the build and it seems that the issue is solved.

maven-bundle-plugin:2.3.5:bundle (default-bundle) @ geronimo-osgi-registry ---
Dec 07, 2011 3:13:34 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Manifest-Version.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Dec 07, 2011 3:13:34 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Created-By.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Dec 07, 2011 3:13:34 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Built-By.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Dec 07, 2011 3:13:34 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Build-Jdk.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.