Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

Commit

Permalink
Fixed missing repositories and updated documentation.
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Pires <pjpires@gmail.com>
  • Loading branch information
pires committed Sep 11, 2013
1 parent 3e39b73 commit 53716bd
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
simple-jersey-rest-app
====================

A simple proof-of-concept of RESTful web service implemented with Jersey and GSON instead of default Jackson.

[![Build Status](https://drone.io/github.com/pires/simple-jersey-rest-app/status.png)](https://drone.io/github.com/pires/simple-jersey-rest-app/latest)

A simple Java EE 7 (JAX-RS 2.0) application that features:
* GSON as JSON provider
* A working implementation of _ApplicationEventListener_
* Example of JAX-RS 2.0 client API usage (look for it in the integration tests)

## Prerequisites ##
- JDK 6
- JDK 7
- Maven 3.0.3 or newer
- Glassfish 3.1.1 or newer
- Glassfish 4.0 or newer (**only** if you want to deploy the WAR file)

## Test ##
```
mvn clean install
```
mvn clean test
```

## Generate WAR ##
```
mvn clean package
```
22 changes: 18 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.github.pires.example</groupId>
Expand Down Expand Up @@ -37,9 +38,22 @@
</developer>
</developers>

<repositories>
<repository>
<id>maven.java.net</id>
<name>Java.net Repository for Maven</name>
<url>https://maven.java.net/content/groups/promoted/</url>
</repository>
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/glassfish/</url>
</repository>
</repositories>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.6</java.version>
<java.version>1.7</java.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -106,10 +120,10 @@
<configuration>
<rules>
<requireMavenVersion>
<version>[3.1.0,)</version>
<version>[3.0.3,)</version>
</requireMavenVersion>
<requireJavaVersion>
<version>[1.6,)</version>
<version>[1.7,)</version>
</requireJavaVersion>
</rules>
</configuration>
Expand Down

0 comments on commit 53716bd

Please sign in to comment.