So, I'm uncomfortable with this, without a bit more investigation. I'll look at the wider set of issues around using guice in an osgi bundle context. In the mean-time, you can include guice, and exclude javax-inject and aopalliance dependencies, and substitute these alternatives if you wish, at the point of declaring the guice dependency.
Christian. On May 8, 2012, at 8:54 PM, [email protected] wrote: > Status: New > Owner: ---- > > New issue 704 by [email protected]: better depend on javax.inject and > aopalliance provided by apache servicemix > http://code.google.com/p/google-guice/issues/detail?id=704 > > those two artifacts packed by apache servicemix are valid OSGi bundle, so in > order to ease integrating of guice in to OSGi env, please depend on them > instead of the original ones. > > <dependency> > <groupId>org.apache.servicemix.bundles</groupId> > <artifactId>org.apache.servicemix.bundles.javax-inject</artifactId> > <version>1_2</version> > </dependency> > <dependency> > <groupId>org.apache.servicemix.bundles</groupId> > <artifactId>org.apache.servicemix.bundles.aopalliance</artifactId> > <version>1.0_6</version> > </dependency> > > -- > You received this message because you are subscribed to the Google Groups > "google-guice-dev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-guice-dev?hl=en. > -- You received this message because you are subscribed to the Google Groups "google-guice-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice-dev?hl=en.
