Hi everybody, There seems to be two artifacts corresponding to the OSGi R4 core api, on the maven central repository : org.osgi:osgi_R4_core And org.apache.felix:org.osgi.core
Is there anay reason to use the one of felix rather than the other one ? Thanks, Anne -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Stuart McCulloch Envoyé : vendredi 17 août 2007 12:05 À : [email protected] Objet : Re: maven bundle plugin repository On 17/08/07, GERODOLLE Anne RD-MAPS-GRE <[EMAIL PROTECTED]> wrote: > > Hi everybody, > > I'm trying to create a bundle, using the 1.0.0 versions of the felix > artifacts, namely the maven-bundle-plugin. > > To that purpose, I followed the instructions on the felix Web site, > except I suppressed the "repositories" part that points toward the > incubator repositiry (because maven-bundle-plugin is found on the central > repository). > > And when I type "mvn install" I get > "cannot find lifecycle mapping for packaging:bundle" > > Hereafter is my pom.xml file. > Thanks in advance for your help, > > Anne > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd > "> > <modelVersion>4.0.0</modelVersion> > <groupId>com.francetelecom.osgi.test</groupId> > <artifactId>mydemo</artifactId> > <packaging>bundle</packaging> > <version>0.1-SNAPSHOT</version> > <name>osgi bundle with activator archetype</name> > > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>3.8.1</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>log4j</groupId> > <artifactId>log4j</artifactId> > <version>1.2.13</version> > <scope>compile</scope> > </dependency> > <dependency> > <groupId>org.apache.felix</groupId> > <artifactId>org.osgi.core</artifactId> > <version>1.0.0</version> > </dependency> > </dependencies> > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.5</source> > <target>1.5</target> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.felix</groupId> > <artifactId>maven-bundle-plugin</artifactId> Hi Anne, you need to add: <extensions>true</extensions> here so maven knows to use the extended lifecycle from the bundle-plugin <version>1.0.0</version> > <configuration> > <instructions> > <Bundle-Activator>com.francetelecom.osgi.test.MyActivator > </Bundle-Activator> > <Bundle-Vendor>France Telecom Research and Developement</Bundle-Vendor> > <Bundle-Copyright>France Telecom</Bundle-Copyright> > <Bundle-Classpath>.</Bundle-Classpath> > </instructions> > </configuration> > </plugin> > </plugins> > </build> > </project> > > > -----Message d'origine----- > De : Richard S. Hall [mailto:[EMAIL PROTECTED] Envoyé : jeudi 26 > juillet 2007 19:53 À : [email protected] Objet : Re: maven bundle > plugin repository > > Gustavo Morozowski wrote: > > As felix project is moving to 1.0 release, will the maven plugin > > move to the official maven 2 repositories? > > I think the maven-bundle-plugin (not maven-osgi-plugin) has already > moved to the official repo... > > -> richard > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Cheers, Stuart --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

