Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 23954 invoked from network); 16 Dec 2007 09:03:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Dec 2007 09:03:16 -0000 Received: (qmail 65267 invoked by uid 500); 16 Dec 2007 09:03:05 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 65232 invoked by uid 500); 16 Dec 2007 09:03:04 -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 65223 invoked by uid 99); 16 Dec 2007 09:03:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Dec 2007 01:03:04 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Dec 2007 09:02:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0AFCC714233 for ; Sun, 16 Dec 2007 01:02:43 -0800 (PST) Message-ID: <17680370.1197795763042.JavaMail.jira@brutus> Date: Sun, 16 Dec 2007 01:02:43 -0800 (PST) From: "Stuart McCulloch (JIRA)" To: dev@felix.apache.org Subject: [jira] Resolved: (FELIX-436) Maven Bundle Plugin doesn't work in Eclipse (using a maven plugin for Eclipse) In-Reply-To: <31655810.1197626323404.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-436?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Stuart McCulloch resolved FELIX-436. ------------------------------------ Resolution: Invalid OK, marking this as invalid as unfortunately we can't fix this in the bundl= e-plugin - it needs a fix to the Maven embedder component used in m2eclipse and q4e= . Until then, my suggestion is to either use the command line to kick-off bui= lds or use the "Run->External Tools->Open..." dialog in Eclipse to add the bundle = build. > Maven Bundle Plugin doesn't work in Eclipse (using a maven plugin for Ecl= ipse) > -------------------------------------------------------------------------= ----- > > Key: FELIX-436 > URL: https://issues.apache.org/jira/browse/FELIX-436 > Project: Felix > Issue Type: Bug > Components: Maven Bundle Plugin > Environment: Maven version: 2.0.8 > Eclipse version: 3.3.0 - Build Id: I20070625-1500 > Java version: 1.6.0_01 > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > Reporter: Jaime Fern=C3=A1ndez > Assignee: Stuart McCulloch > > I've just started with the "maven bundle plugin" to develop OSGi bundles,= but I cannot make it work from Eclipse. However it works correctly from co= nsole (using mvn.bat). > I've used 2 different maven plugins for Eclipse with the same results: > - M2Eclipse: http://m2eclipse.codehaus.org/ > - Q for Eclipse: http://code.google.com/p/q4e/ > To create the Maven project (to use the "maven bundle plugin"), I've foll= owed this document: > http://cwiki.apache.org/confluence/display/FELIX/Maven+Bundle+Plugin+%28B= ND%29 > Whenever I include: bundle in the pom.xml, the bui= ld plan is empty and it doesn't do anything (although the build says to be = successful). If I replace it by: jar the JAR file is= created (although with the typical manifest file which is useless for OSGi= ). > This is the pom.xml that I've used for a very simple example: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > 4.0.0 > PruebaMvn > PruebaMvn > bundle > Prueba de OSGi Maven > 0.0.1-SNAPSHOT > > > > junit > junit > 4.4 > test > > > org.osgi > osgi_R4_core > 1.0 > > > > > > org.apache.felix > maven-bundle-plugin > 1.0.0 > true > > > prueba.api > prueba.impl > prueba.impl.PruebaActivator > > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > And this is the maven output: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > [DEBUG] Reading global settings from: E:\java\apache-maven-2.0.8\conf\set= tings.xml > [DEBUG] Reading user settings from: null > [DEBUG] Settings file is null. Returning null. > [DEBUG] Reading global settings from: E:\java\apache-maven-2.0.8\conf\set= tings.xml > [DEBUG] Reading user settings from: null > [DEBUG] Settings file is null. Returning null. > [DEBUG] Pre-scanning POM lineage of: E:\java\eclipse_new\eclipse\pruebaMv= n\PruebaMvn\pom.xml for build extensions. > [DEBUG] Building model-lineage for: E:\java\eclipse_new\eclipse\pruebaMvn= \PruebaMvn\pom.xml to pre-scan for extensions. > [DEBUG] Checking for external profiles in: E:\java\eclipse_new\eclipse\pr= uebaMvn\profiles.xml > [DEBUG] Checking: PruebaMvn:PruebaMvn:bundle:0.0.1-SNAPSHOT for extension= s. (It has 0 modules.) > [DEBUG] Basedir is: E:\java\eclipse_new\eclipse\pruebaMvn\PruebaMvn > [DEBUG] Finished pre-scanning: E:\java\eclipse_new\eclipse\pruebaMvn\Prue= baMvn\pom.xml for build extensions. > [DEBUG] Building profile manager for model: [inherited]:null:jar:[inherit= ed] with pom file: E:\java\eclipse_new\eclipse\pruebaMvn\PruebaMvn\pom.xml > [DEBUG] Checking for external profiles in: E:\java\eclipse_new\eclipse\pr= uebaMvn\PruebaMvn\profiles.xml > [DEBUG] Checking for external profiles in: E:\java\eclipse_new\eclipse\pr= uebaMvn\PruebaMvn\profiles.xml > [DEBUG] Building profile manager for model: PruebaMvn:PruebaMvn:bundle: 0= .0.1-SNAPSHOT with pom file: E:\java\eclipse_new\eclipse\pruebaMvn\PruebaMv= n\pom.xml > [DEBUG] Checking for external profiles in: E:\java\eclipse_new\eclipse\pr= uebaMvn\PruebaMvn\profiles.xml > [DEBUG] Building profile manager for model: PruebaMvn:PruebaMvn:bundle: 0= .0.1-SNAPSHOT with external profile manager including profiles: {} > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------= ---------- > [INFO] Building Prueba de OSGi Maven > [INFO] task-segment: [install] > [INFO] ------------------------------------------------------------------= ---------- > [DEBUG] > Our build plan is: > [INFO] ------------------------------------------------------------------= ---------- > [INFO] BUILD SUCCESSFUL PruebaMvn:PruebaMvn:bundle:0.0.1-SNAPSHOT ( task= -segment: [install] ) > [INFO] ------------------------------------------------------------------= ---------- > [INFO] Total time: 0 second > [INFO] Finished at: Thu Dec 13 20:35:02 CET 2007 > [INFO] Memory 2M/4M > [INFO] ------------------------------------------------------------------= ---------- > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.