This project provides a snapshot maven repository for a few OS projects
- apache commons-io 1.5-SNAPSHOT
- cglib 2.1
- guice 2.0
- guice servlet 2.0 (MODIFIED! please see below)
- guice struts2 plugin 2.0
- xstream 1.3.1 (GAE compatible)
- ScalaTestJUnit4Runner
Repo browser
How to install
add this snippet to your pom.xml file or your ~/.m2/settings.xml
<repository>
<id>guice-maven</id>
<name>guice maven</name>
<url>http://guice-maven.googlecode.com/svn/trunk</url>
</repository>then in your pom.xml you can add guice, xstream and guice servlet as dependencies:
<dependency>
<groupId>com.google.code.guice</groupId>
<artifactId>guice</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>com.google.code.guice</groupId>
<artifactId>guice-struts</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>com.google.code.guice</groupId>
<artifactId>guice-servlet</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>com.jteigen.scalatest</groupId>
<artifactId>junit4runner</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency> Custom Guice Servlet Features
- added named group capturing, ie serveRegex("/myrest/<name>(.*)/<id>(.*)").with(MySerlvet.class) will capture the regexp groups and save them as name and id request attributes
- added by as an alias to with in the EDSL (since with is a keyword in scala)