Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4145

bundleall goal failure

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: maven-bundle-plugin-2.4.0
    • Fix Version/s: None
    • Component/s: Maven Bundle Plugin
    • Labels:
      None
    • Environment:
      Linux 64-bit, Oracle JDK 1.7.0_25-b15, Apache Maven 3.0.4

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              amichai Amichai Rothman
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: