Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/seratch/spring-jersey-archetype

mvn archetype:generate -DarchetypeCatalog=http://seratch.github.com/mvn-repo/releases
https://github.com/seratch/spring-jersey-archetype

Last synced: about 1 month ago
JSON representation

mvn archetype:generate -DarchetypeCatalog=http://seratch.github.com/mvn-repo/releases

Awesome Lists containing this project

README

        

# Jersey(JAX-RS) application template with Spring Framework

## spring-jersey-archetype

### Jersey Server (1.17.1)

[http://jersey.java.net/nonav/documentation/1.17/user-guide.html](http://jersey.java.net/nonav/documentation/1.17/user-guide.html)

### Spring Framework (3.2.2.RELEASE)

[http://static.springsource.org/spring/docs/3.2.2.RELEASE/spring-framework-reference/html/](http://static.springsource.org/spring/docs/3.2.2.RELEASE/spring-framework-reference/html/)

## How to use

````sh
mvn archetype:generate -DarchetypeCatalog=http://seratch.github.com/mvn-repo/releases
```

```sh
Choose archetype:
1: http://seratch.github.com/mvn-repo/releases -> spring-jersey-archetype (Jersey App Template with Spring Framework)
Choose a number: : 4
Choose version:
1: 1.10
2: 1.11
3: 1.16
4: 1.17.1
Choose a number: 3:
Define value for property 'groupId': : com.example
Define value for property 'artifactId': : spring-jersey-example
Define value for property 'version': 1.0-SNAPSHOT:
Define value for property 'package': com.example:
Confirm properties configuration:
groupId: com.example
artifactId: spring-jersey-example
version: 1.0-SNAPSHOT
package: com.example
Y: y
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20 seconds
[INFO] Finished at: Thu Sep 29 13:04:07 JST 2011
[INFO] Final Memory: 11M/27M
[INFO] ------------------------------------------------------------------------
```

````sh
cd spring-jersey-example
mvn jetty:run
curl http://localhost:8080/
```