Yes that should really be an optional dependency, since it is jarjar'd into the
final jar - for the moment you can exclude it as follows:
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.0-beta</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>
Although personally I think Guava should be promoted to a direct dependency as
it makes the build and distribution much simpler:
http://code.google.com/p/google-guice/issues/detail?id=709
(in the old 3.0 release the Guava code was manually copied into the source tree
which is why it never appeared as a dependency)
On 16 Oct 2013, at 15:00, Peter Reilly wrote:
> The pom file has a (needless) dependence on guava/11.0.1. (along with
> a pile of other stuff). So
> folks that use pom based dependence to get guice (maven, ivy, buildr others)
> pick up this have to take counter measures.
>
>
> On Wed, Oct 16, 2013 at 4:21 AM, Stuart McCulloch <[email protected]> wrote:
> Guice 4.0-beta embeds a subset of Guava under a different package, so you
> shouldn't see any classpath conflicts.
>
> How are you consuming Guice? Are you assembling the jars yourself or using
> something like Maven or Ivy?
>
> PS. Guice trunk can now compile against Guava 15:
> http://code.google.com/p/google-guice/issues/detail?id=769
>
> On 16 Oct 2013, at 08:39, Valerij Erakov wrote:
>
>> Do you plan to migrate to guava 15? In transition on version 4-Beta appeared
>> jar hell (using guava 15 and guice)
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "google-guice" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/google-guice.
>> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-guice" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-guice.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-guice" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-guice.
> For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice.
For more options, visit https://groups.google.com/groups/opt_out.