The page explaining how to use Maven as an external tools in Eclipse is 
http://maven.apache.org/guides/mini/guide-ide-eclipse.html#Maven%20as%20an%20external%20tool

Clement


> -----Message d'origine-----
> De : Stuart McCulloch (JIRA) [mailto:[EMAIL PROTECTED]
> Envoyé : dimanche 16 décembre 2007 10:03
> À : [email protected]
> Objet : [jira] Resolved: (FELIX-436) Maven Bundle Plugin doesn't work
> in Eclipse (using a maven plugin for Eclipse)
> 
> 
>      [ https://issues.apache.org/jira/browse/FELIX-
> 436?page=com.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
> bundle-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
> builds 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
> Eclipse)
> > ---------------------------------------------------------------------
> ---------
> >
> >                 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ández
> >            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 console (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
> followed this document:
> >
> http://cwiki.apache.org/confluence/display/FELIX/Maven+Bundle+Plugin+%2
> 8BND%29
> > Whenever I include: <packaging>bundle</packaging> in the pom.xml, the
> build plan is empty and it doesn't do anything (although the build says
> to be successful). If I replace it by: <packaging>jar</packaging> 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:
> > =======================================================
> > <?xml version="1.0" encoding="UTF-8"?><project>
> >   <modelVersion>4.0.0</modelVersion>
> >   <groupId>PruebaMvn</groupId>
> >   <artifactId>PruebaMvn</artifactId>
> >   <packaging>bundle</packaging>
> >   <name>Prueba de OSGi Maven</name>
> >   <version>0.0.1-SNAPSHOT</version>
> >   <description></description>
> >   <dependencies>
> >     <dependency>
> >       <groupId>junit</groupId>
> >       <artifactId>junit</artifactId>
> >       <version>4.4</version>
> >       <scope>test</scope>
> >     </dependency>
> >     <dependency>
> >       <groupId>org.osgi</groupId>
> >       <artifactId>osgi_R4_core</artifactId>
> >       <version>1.0</version>
> >     </dependency>
> >   </dependencies>
> >   <build>
> >     <plugins>
> >       <plugin>
> >         <groupId>org.apache.felix</groupId>
> >         <artifactId>maven-bundle-plugin</artifactId>
> >         <version>1.0.0</version>
> >         <extensions>true</extensions>
> >         <configuration>
> >           <instructions>
> >             <Export-Package>prueba.api</Export-Package>
> >             <Private-Package>prueba.impl</Private-Package>
> >             <Bundle-Activator>prueba.impl.PruebaActivator</Bundle-
> Activator>
> >           </instructions>
> >         </configuration>
> >       </plugin>
> >     </plugins>
> >   </build>
> > </project>
> > =======================================================
> > And this is the maven output:
> > =======================================================
> > [DEBUG] Reading global settings from: E:\java\apache-maven-
> 2.0.8\conf\settings.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\settings.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\pruebaMvn\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\pruebaMvn\profiles.xml
> > [DEBUG] Checking: PruebaMvn:PruebaMvn:bundle:0.0.1-SNAPSHOT for
> extensions. (It has 0 modules.)
> > [DEBUG] Basedir is: E:\java\eclipse_new\eclipse\pruebaMvn\PruebaMvn
> > [DEBUG] Finished pre-scanning:
> E:\java\eclipse_new\eclipse\pruebaMvn\PruebaMvn\pom.xml for build
> extensions.
> > [DEBUG] Building profile manager for model:
> [inherited]:null:jar:[inherited] with pom file:
> E:\java\eclipse_new\eclipse\pruebaMvn\PruebaMvn\pom.xml
> > [DEBUG] Checking for external profiles in:
> E:\java\eclipse_new\eclipse\pruebaMvn\PruebaMvn\profiles.xml
> > [DEBUG] Checking for external profiles in:
> E:\java\eclipse_new\eclipse\pruebaMvn\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\PruebaMvn\pom.xml
> > [DEBUG] Checking for external profiles in:
> E:\java\eclipse_new\eclipse\pruebaMvn\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] --------------------------------------------------------------
> --------------
> > =======================================================
> 
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.

Reply via email to