You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Enrique Rodriguez <en...@gmail.com> on 2005/11/01 03:24:52 UTC

Felix M2 Plugin updated for Maven 2 lifecycle

Hi, Felix list,

I updated the Felix M2 Plugin to work with the standard Maven 2 
lifecycle.  Big thanks to Brett Porter for a few key pointers.  Please note:

o  You now use 'mvn package' to produce a bundle.
o  You now use 'mvn install' to install your bundle to the local repo.
o  I removed the '-bundle' that was appended to artifact names.
o  You need a <packaging> tag in your pom.xml to mark your artifact as 
an 'osgi-bundle'.
o  I bumped the version up from 0.1.3 to 0.3.0.
o  You need the following <plugin> body:

<project>
   <modelVersion>4.0.0</modelVersion>
   <packaging>osgi-bundle</packaging>
   ...
   <build>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-osgi-plugin</artifactId>
         <extensions>true</extensions>
         <version>0.3.0</version>
         <configuration>
           <osgiManifest>
<bundleActivator>org.apache.mytest.Activator</bundleActivator>
             ...
           </osgiManifest>
         </configuration>
       </plugin>
     </plugins>
   </build>
   ...
</project>

Enrique

Re: Felix M2 Plugin updated for Maven 2 lifecycle

Posted by Enrique Rodriguez <en...@gmail.com>.
Enrique Rodriguez wrote:
>   ...
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-osgi-plugin</artifactId>
>         <extensions>true</extensions>

I got that groupId wrong from a cut-n-paste.  Please use 
org.apache.felix.plugins, which I think makes sense.  Let me know otherwise:

       <plugin>
         <groupId>org.apache.felix.plugins</groupId>
         <artifactId>maven-osgi-plugin</artifactId>
         <extensions>true</extensions>
         <version>0.3.0</version>
         ...

Enrique