Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CC4711AC6 for ; Mon, 19 May 2014 12:06:41 +0000 (UTC) Received: (qmail 78816 invoked by uid 500); 19 May 2014 12:06:41 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 78742 invoked by uid 500); 19 May 2014 12:06:41 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 78733 invoked by uid 99); 19 May 2014 12:06:41 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2014 12:06:41 +0000 Date: Mon, 19 May 2014 12:06:41 +0000 (UTC) From: "NeMewSys (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-4145) bundleall goal failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-4145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14001622#comment-14001622 ] NeMewSys commented on FELIX-4145: --------------------------------- Guys... Bundleall is deprecated but what else do we have left? Please can you post an answer here? http://stackoverflow.com/questions/23737169/managing-osgi-dependency-hell Thanks! > 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 was sent by Atlassian JIRA (v6.2#6252)