On 27-04-2011 20:07, frog wrote:
Could someone tell me what is the correct way to get guice
extensions via maven?
I need to include persist and servlet but for some reason maven can't
find any version I ask for. (2.0, 3.0 ...)
Installing jars manually to my local repo doesn't solve the problem.
(?!)
my pom
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>${guice.version}</version>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-persist</artifactId>
<version>3.0-rc2</version>
</dependency>
Declaring dependencies in <dependencyManagement> is not enough,
dependencyManagement exists to preset versions for dependencies across
all poms.
You also need to declare the REAL dependencies of your pom inside a
<dependencies> tag (outside <dependencyManagement>).
Jean-François
The jars are in the public repo
http://repo1.maven.org/maven2/com/google/inject/extensions/guice-servlet/3.0-rc2/
thanks for correcting my foolishness :-)
--
You received this message because you are subscribed to the Google Groups
"google-guice" 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?hl=en.