Bug 758586 - Doesn't work at all
Summary: Doesn't work at all
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: maven-plugin-bundle
Version: rawhide
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
Assignee: Jaromír Cápík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-30 06:47 UTC by Alexander Kurtakov
Modified: 2016-02-01 01:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-07 17:00:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.