Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 27091 invoked from network); 11 Mar 2011 18:28:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Mar 2011 18:28:23 -0000 Received: (qmail 5693 invoked by uid 500); 11 Mar 2011 18:28:23 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 5652 invoked by uid 500); 11 Mar 2011 18:28:23 -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 5644 invoked by uid 99); 11 Mar 2011 18:28:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2011 18:28:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2011 18:28:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 683123A4135 for ; Fri, 11 Mar 2011 18:27:59 +0000 (UTC) Date: Fri, 11 Mar 2011 18:27:59 +0000 (UTC) From: "Konrad Windszus (JIRA)" To: dev@felix.apache.org Message-ID: <1465182564.14032.1299868079408.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1459647818.12935.1299831539365.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Konrad Windszus updated FELIX-2878: ----------------------------------- Attachment: multimoduleosgi.zip Attached is an example multimodule with two OSGi modules, where modulea depends upon moduleb > scr- and bundle-plugin in multimodule project fails with goal "test" > -------------------------------------------------------------------- > > Key: FELIX-2878 > URL: https://issues.apache.org/jira/browse/FELIX-2878 > Project: Felix > Issue Type: Bug > Components: Maven Bundle Plugin, Maven SCR Plugin > Affects Versions: maven-scr-plugin-1.6.0, maven-bundle-plugin-2.1.0 > Reporter: Konrad Windszus > Attachments: multimoduleosgi.zip > > > If I have a multimodule project with several OSGi bundles, which all use the scr plugin, there is an error during "mvn test". This is due to the scr plugin being bound to the phase "generate-resources" and maven-bundle plugin generating the manifest only in the package phase. If I have modules A and B (both packaging "bundle"), B depends upon A and building the multimodule with "mvn test" there is an error, because during the scr goal of B, it looks for the manifest of A, which is apparently not there, since it is not constructed with "test". > The error message is as follows: > ...... > [INFO] [compiler:compile {execution: default-compile}] > [INFO] Compiling 13 source files to\target\classes > [INFO] [scr:scr {execution: generate-scr-descriptor}] > [ERROR] Unable to get manifest from artifact at \target\classes:0 > [INFO] ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] SCR Descriptor parsing had failures (see log) > [INFO] ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 44 seconds > [INFO] Finished at: Thu Mar 10 10:43:58 CET 2011 > [INFO] Final Memory: 93M/237M > [INFO] ------------------------------------------------------------------------ -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira