Commit 939e12287a07724f7f677d7a76b63848a877253f

Authored by Paulo Graça
1 parent b0d3432ab9

Add the dependencies

Showing 1 changed file with 63 additions and 0 deletions   Show diff stats
README.md
... ... @@ -2,6 +2,69 @@
2 2  
3 3 # Usage Examples
4 4  
  5 +## Maven dependencies
  6 +
  7 +In Maven <properties> section you must indicate the versions of the dependencies
  8 +
  9 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  10 + <java.version>1.8</java.version>
  11 + <jersey.version>2.22.1</jersey.version>
  12 + <jaxb2-basics.version>0.9.5</jaxb2-basics.version>
  13 + <log4j.version>2.4</log4j.version>
  14 +
  15 +
  16 +In Maven <dependencies> section you must include the log4j, jersey client, jaxb, javax dependencies in your project
  17 +
  18 + <!-- Log4J -->
  19 + <dependency>
  20 + <groupId>org.apache.logging.log4j</groupId>
  21 + <artifactId>log4j-core</artifactId>
  22 + <version>${log4j.version}</version>
  23 + </dependency>
  24 +
  25 + <!-- Jersey Client -->
  26 + <dependency>
  27 + <groupId>org.glassfish.jersey.core</groupId>
  28 + <artifactId>jersey-client</artifactId>
  29 + <version>${jersey.version}</version>
  30 + </dependency>
  31 + <dependency>
  32 + <groupId>org.glassfish.jersey.containers</groupId>
  33 + <artifactId>jersey-container-servlet</artifactId>
  34 + <version>${jersey.version}</version>
  35 + </dependency>
  36 + <dependency>
  37 + <groupId>org.glassfish.jersey.media</groupId>
  38 + <artifactId>jersey-media-json-jackson</artifactId>
  39 + <version>${jersey.version}</version>
  40 + </dependency>
  41 + <dependency>
  42 + <groupId>org.glassfish.jersey.media</groupId>
  43 + <artifactId>jersey-media-jaxb</artifactId>
  44 + <version>${jersey.version}</version>
  45 + </dependency>
  46 +
  47 + <!-- JAXB2 Commons -->
  48 + <dependency>
  49 + <groupId>org.jvnet.jaxb2_commons</groupId>
  50 + <artifactId>jaxb2-basics-runtime</artifactId>
  51 + <version>${jaxb2-basics.version}</version>
  52 + </dependency>
  53 +
  54 + <!-- javax -->
  55 + <dependency>
  56 + <groupId>javax.servlet</groupId>
  57 + <artifactId>javax.servlet-api</artifactId>
  58 + <version>3.1.0</version>
  59 + <scope>provided</scope>
  60 + </dependency>
  61 + <dependency>
  62 + <groupId>javax.ws.rs</groupId>
  63 + <artifactId>javax.ws.rs-api</artifactId>
  64 + <version>2.0.1</version>
  65 + </dependency>
  66 +
  67 +
5 68 ## Requirements
6 69  
7 70 You should import:
... ...