2008/9/6 Richard Wallace <[EMAIL PROTECTED]>
> Hello all,
>
> So I'm struggling a bit to understand how the maven-pax-plugin works. I
> have a simple pom with the following <build> section
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.ops4j</groupId>
> <artifactId>maven-pax-plugin</artifactId>
> <version>1.3</version>
> <extensions>true</extensions>
> </plugin>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>1.4.0</version>
> <configuration>
> <instructions>
> <Bundle-SymbolicName>${pom.name}</Bundle-SymbolicName>
> <Bundle-Version>${pom.version}</Bundle-Version>
>
> <Export-Package>!${bundle.namespace}.internal.*</Export-Package>
>
> <Private-Package>${bundle.namespace}.internal.*</Private-Package>
> <_include>osgi.bnd</_include>
> </instructions>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> And here are my dependencies
>
> <dependencies>
> <dependency>
> <groupId>org.ops4j.pax.swissbox</groupId>
> <artifactId>pax-swissbox-extender</artifactId>
> <version>0.2.0</version>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>jcl-over-slf4j</artifactId>
> <version>1.5.2</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-api</artifactId>
> <version>1.5.2</version>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-simple</artifactId>
> <version>1.5.2</version>
> <scope>runtime</scope>
> </dependency>
> <dependency>
> <groupId>org.osgi</groupId>
> <artifactId>osgi_R4_core</artifactId>
> <version>1.0</version>
> <scope>provided</scope>
> </dependency>
>
> When I try and deploy this I get the following message
>
> org.osgi.framework.BundleException: Unresolved package in bundle 1:
> package; (&(package=org.ops4j.pax.swissbox.lifecycle)(version>=0.1.0))
>
> and I can see that the pax-swissbox-lifecycle is not being deployed as a
> bundle even though it is a dependency in the pax-swissbox-extender pom. So,
> it looks as though transitive dependencies are not being picked up by
> pax:provision like they should be. Am I doing something wrong? Any ideas?
>
looks like a bug - raise an issue on JIRA and I'll fix it
> Thanks,
> Rich
>
> P.S. I've also been struggling with what scope to give things. Does what
> I have look reasonably correct?
>
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
>
>
--
Cheers, Stuart
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general