You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stuart McCulloch (JIRA)" <ji...@apache.org> on 2013/06/23 14:26:19 UTC

[jira] [Commented] (FELIX-4145) bundleall goal failure

    [ https://issues.apache.org/jira/browse/FELIX-4145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13691447#comment-13691447 ] 

Stuart McCulloch commented on FELIX-4145:
-----------------------------------------

Note that the "bundleall" goal is deprecated because it produces low-quality bundles due to not being able to customize instructions per-bundle. The recommended approach is to either embed all the packages into a single "uber-bundle" or have a separate project per-bundle so you can tweak the individual instructions as necessary.
                
> bundleall goal failure
> ----------------------
>
>                 Key: FELIX-4145
>                 URL: https://issues.apache.org/jira/browse/FELIX-4145
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.4.0
>         Environment: Linux 64-bit, Oracle JDK 1.7.0_25-b15, Apache Maven 3.0.4
>            Reporter: Amichai Rothman
>
> When running the bundleall goaI in version 2.4.0 I get the error below. If I revert to 2.3.7 (and change nothing else) everything works ok.
> [ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:2.4.0:bundleall (default-cli) on project myproject: Error generating OSGi bundle for project org.apache.geronimo.specs:geronimo-jms_1.1_spec: aQute.bnd.osgi.Descriptors$PackageRef cannot be cast to java.lang.String -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.felix:maven-bundle-plugin:2.4.0:bundleall (default-cli) on project myproject: Error generating OSGi bundle for project org.apache.geronimo.specs:geronimo-jms_1.1_spec
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
>         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:320)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         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:606)
>         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)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error generating OSGi bundle for project org.apache.geronimo.specs:geronimo-jms_1.1_spec
>         at org.apache.felix.bundleplugin.BundleAllPlugin.bundle(BundleAllPlugin.java:399)
>         at org.apache.felix.bundleplugin.BundleAllPlugin.bundleRoot(BundleAllPlugin.java:322)
>         at org.apache.felix.bundleplugin.BundleAllPlugin.bundleAll(BundleAllPlugin.java:213)
>         at org.apache.felix.bundleplugin.BundleAllPlugin.bundleAll(BundleAllPlugin.java:289)
>         at org.apache.felix.bundleplugin.BundleAllPlugin.bundleAll(BundleAllPlugin.java:289)
>         at org.apache.felix.bundleplugin.BundleAllPlugin.bundleAll(BundleAllPlugin.java:170)
>         at org.apache.felix.bundleplugin.BundleAllPlugin.execute(BundleAllPlugin.java:157)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         ... 19 more
> Caused by: java.lang.ClassCastException: aQute.bnd.osgi.Descriptors$PackageRef cannot be cast to java.lang.String
>         at org.apache.felix.bundleplugin.BundleAllPlugin.addExportedPackages(BundleAllPlugin.java:420)
>         at org.apache.felix.bundleplugin.BundleAllPlugin.bundle(BundleAllPlugin.java:388)
>         ... 27 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira