Hi, I've opened and tried a first fix : https://issues.apache.org/jira/browse/FELIX-2733 Could you check with the maven-ipojo-plugin from the trunk (1.7.0-SNAPSHOT) (I can also deploy a snapshot if need be)
Regards, Clement On 17.12.10 10:57, "Lindley Andrew" <[email protected]> wrote: >Hi Clement, > >Thanks fort he hint - I had already tried to specify the phase, but this >unfortunately didn't affect the output. It really would be great if you >could directly add support for 'war' as supported packaging type. > >Are there any intermediate solutions or hints I could go for at the >moment? > >Thanks, >Kr Andrew > >-----Original Message----- >From: Clement Escoffier [mailto:[email protected]] >Sent: Thursday, December 16, 2010 6:55 PM >To: [email protected] >Subject: Re: using maven-ipojo-plugin in combination with the >maven-war-plugin > >Hi, > >Just a guess, >Did you try to execute the iPOJO plugin in a defined phase: ><plugin> > <groupId>org.apache.felix</groupId> > <artifactId>maven-ipojo-plugin</artifactId> > <version>1.4.2</version> > <executions> > <execution> > <goals> > ><goal>ipojo-bundle</goal> > </goals> > <phase>package</phase> <!-- define the phase --> > <configuration> > ><metadata>src/main/osgi/ipojo/meta.xml</metadata> > </configuration> > </execution> > </executions> > </plugin> > > > >Still, I'm not sure this is possible with the current plugin, as I think, >we check the packaging. Tell me if it works with this 'phase', if not I >will try to see if we can add 'war' as supported packaging type > >Regards, > >Clement > >On 16.12.10 17:54, "Lindley Andrew" <[email protected]> wrote: > >>I am trying to configure <artifactId>maven-ipojo-plugin</artifactId> to >>be used in combination with the <artifactId>maven-war-plugin</artifactId> >>The overall goal is to have a <packaging>war</packaging> which can also >>be exposed as a bundle. >> >>I have managed that the <maven-bundle-plugin> generates a manifest, which >>is picked up and included in the war. However the next step, using ipojo >>for handling the service and service instances isn't working. It's not >>being included in the manifest. >> >>Please find attached the relevant snapshots of my maven pom: >> >>Thanks for your support, >>Kr Andrew >> >><plugins> >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-war-plugin</artifactId> >> <configuration> >> >><warSourceDirectory>web</warSourceDirectory> >> <archive> >> <!-- add the generated >>manifest of the osgi-bundle plugin to the war --> >> >><manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</mani >>f >>estFile> >> </archive> >> >><webXml>src/main/web/WEB-INF/web.xml</webXml> >> </configuration> >> </plugin> >> <plugin> >> <!-- >> The goal here is to be able to use a >>different packaging type than "bundle", say "war" packaging, and still >>get benefits of the maven-bundle-plugin. >> The major benefit is of course having >>the manifest being generated by the BND tool. >> If your project is packaged as "war", >>you can still use the maven-bundle-plugin to generate the manifest if you >>add "war" to supportedProjectTypes: >> --> >> <groupId>org.apache.felix</groupId> >> <artifactId>maven-bundle-plugin</artifactId> >> <version>2.1.0</version> >> <executions> >> <execution> >> <id>bundle-manifest</id> >> >><phase>process-classes</phase> >> <goals> >> >><goal>manifest</goal> >> </goals> >> </execution> >> </executions> >> <extensions>true</extensions> >> <configuration> >> <supportedProjectTypes> >> >><supportedProjectType>jar</supportedProjectType> >> >><supportedProjectType>bundle</supportedProjectType> >> >><supportedProjectType>war</supportedProjectType> >> </supportedProjectTypes> >> <instructions> >> >><Bundle-SymbolicName>Planets Service - JTidy</Bundle-SymbolicName> >> >><Bundle-Version>${pom.version}</Bundle-Version> >> <!--assume public classes >>are in the top package, and private classes are under ".internal"--> >> >><Export-Package>eu.planets_project.services.migrate.jtidy.*;version="${po >>m >>.version}"</Export-Package> >> <!--each module can >>override these defaults in their osgi.bnd file--> >> >><_include>-osgi.bnd</_include> >> </instructions> >> </configuration> >> </plugin> >> <!-- osgi - ipojo: meta.xml located in src>main>osgi>ipojo >>--> >> <plugin> >> <groupId>org.apache.felix</groupId> >> <artifactId>maven-ipojo-plugin</artifactId> >> <version>1.4.2</version> >> <executions> >> <execution> >> <goals> >> >><goal>ipojo-bundle</goal> >> </goals> >> <configuration> >> >><metadata>src/main/osgi/ipojo/meta.xml</metadata> >> </configuration> >> </execution> >> </executions> >> </plugin> >></plugins> >> >> > > > >--------------------------------------------------------------------- >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]

