Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In what maven2 repository can Google Guice be found?

As far as I understand Google Guice 2.0 is out not so long ago. But I see that central repo still has outdated 1.0 version. Please, tell where can I find maven2 repository with Google Guice 2.0.

like image 289
Artyom Sokolov Avatar asked May 21 '09 21:05

Artyom Sokolov


2 Answers

Guice 3.0 is now available on central. You'll need the following to depend on it.

<dependency>   <groupId>com.google.inject</groupId>   <artifactId>guice</artifactId>   <version>3.0</version> </dependency> 

Sadly, they haven't uploaded source jars, and the class files have been compiled with Java 6. This may be a show-stopper for you…

like image 134
Dominic Mitchell Avatar answered Sep 21 '22 13:09

Dominic Mitchell


Guice 2.0 is now available in the official google-maven-repository. To use it, add the following to your pom.xml inside of the <dependencies> tag (you'll need to add one if there isn't one):

<dependency>   <groupId>com.google.inject</groupId>   <artifactId>guice</artifactId>   <version>2.0</version> </dependency> 

You shouldn't need to, but you can add a reference to the official google-maven-repository in your pom.xml by following the instructions here.

like image 40
emmby Avatar answered Sep 24 '22 13:09

emmby