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.
6 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…

- 9,756
- 6
- 34
- 46

- 11,861
- 4
- 29
- 30
-
5Note that guice 3.0 is also available on central now. – Chadwick Oct 19 '11 at 19:17
-
2It seems they have added the sources – diega Jul 06 '12 at 12:24
-
Sources currently are present in the repository and class files are compiled with Java 5. – vbezhenar Aug 09 '12 at 10:55
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.

- 99,783
- 65
- 191
- 249
-
Good point, it should probably be the default "compile" scope http://maven.apache.org/pom.html – emmby Sep 02 '09 at 04:33
Since I don't see Guice 2.0 in central I thought I'd include a stable repo where I found it:
The Grails OpenID plugin references http://guice-maven.googlecode.com/svn/trunk/ but that doesn't have it (currently).

- 10,622
- 5
- 26
- 28
They will put it to the central repository soon, as they promised here: http://groups.google.com/group/google-guice/browse_thread/thread/6707a887ed5ef2e3

- 73,184
- 17
- 117
- 128
-
Yup. Sorry about the delay! Hopefully we'll have something ready tomorrow. – Jesse Wilson May 22 '09 at 02:38
Never mind. Guice-maven is intended to provide this.

- 2,385
- 3
- 23
- 34
-
1-1: Guice *is* getting released to Central. Please standardize on that (as the answer above states it will be deployed very soon) – Mark Renouf May 23 '09 at 22:07
Until it reaches the central repository, I've been getting it from here: http://guice-maven.googlecode.com/svn/trunk

- 1,618
- 2
- 18
- 25
-
http://dist.codehaus.org/mule/dependencies/maven2 this one contains more artifacts – Artyom Sokolov Jun 06 '09 at 14:50