pom-jersey.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.techempower</groupId>
  5. <artifactId>grizzly-jersey-example</artifactId>
  6. <version>0.1</version>
  7. <packaging>jar</packaging>
  8. <prerequisites>
  9. <maven>3.0</maven>
  10. </prerequisites>
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <maven.compiler.source>11</maven.compiler.source>
  14. <maven.compiler.target>11</maven.compiler.target>
  15. <activation.version>1.1.1</activation.version>
  16. <commons-cli.version>1.4</commons-cli.version>
  17. <grizzly.version>2.4.4</grizzly.version>
  18. <hibernate.version>5.4.2.Final</hibernate.version>
  19. <hibernate-jpa-api.version>1.0.0.Final</hibernate-jpa-api.version>
  20. <jackson.version>2.9.9</jackson.version>
  21. <jaxb.version>2.3.0</jaxb.version>
  22. <jersey.version>2.28</jersey.version>
  23. <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
  24. <maven-shade-plugin.version>3.1.0</maven-shade-plugin.version>
  25. <mustache.version>0.9.6</mustache.version>
  26. <mysql-connector.version>8.0.18</mysql-connector.version>
  27. </properties>
  28. <dependencies>
  29. <dependency>
  30. <groupId>javax.ws.rs</groupId>
  31. <artifactId>javax.ws.rs-api</artifactId>
  32. <version>2.1</version>
  33. <scope>provided</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.glassfish.jersey.containers</groupId>
  37. <artifactId>jersey-container-grizzly2-http</artifactId>
  38. <version>${jersey.version}</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.glassfish.jersey.inject</groupId>
  42. <artifactId>jersey-hk2</artifactId>
  43. <version>${jersey.version}</version>
  44. <exclusions>
  45. <exclusion>
  46. <artifactId>javax.inject</artifactId>
  47. <groupId>javax.inject</groupId>
  48. </exclusion>
  49. </exclusions>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.glassfish.jersey.ext</groupId>
  53. <artifactId>jersey-mvc-mustache</artifactId>
  54. <version>${jersey.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.glassfish.jersey.media</groupId>
  58. <artifactId>jersey-media-json-jackson</artifactId>
  59. <version>${jersey.version}</version>
  60. <exclusions>
  61. <exclusion>
  62. <artifactId>com.fasterxml.jackson.module</artifactId>
  63. <groupId>jackson-module-jaxb-annotations</groupId>
  64. </exclusion>
  65. </exclusions>
  66. </dependency>
  67. <!-- <artifactId>jersey-container-grizzly2-http</artifactId> <artifactId>jersey-container-servlet</artifactId>
  68. <artifactId>jersey-container-grizzly2-servlet</artifactId> <dependency> <groupId>com.sun.jersey</groupId>
  69. <artifactId>jersey-grizzly2</artifactId> <version>${jersey.version}</version>
  70. </dependency> <dependency> <groupId>org.glassfish.grizzly</groupId> <artifactId>grizzly-http</artifactId>
  71. <version>${grizzly.version}</version> </dependency> <dependency> <groupId>org.glassfish.grizzly</groupId>
  72. <artifactId>grizzly-http-server</artifactId> <version>${grizzly.version}</version>
  73. </dependency> -->
  74. <dependency>
  75. <groupId>org.slf4j</groupId>
  76. <artifactId>slf4j-api</artifactId>
  77. <version>1.8.0-beta2</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.slf4j</groupId>
  81. <artifactId>slf4j-simple</artifactId>
  82. <version>1.8.0-beta2</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.github.spullara.mustache.java</groupId>
  86. <artifactId>compiler</artifactId>
  87. <version>${mustache.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.fasterxml.jackson.core</groupId>
  91. <artifactId>jackson-databind</artifactId>
  92. <version>${jackson.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.fasterxml.jackson.core</groupId>
  96. <artifactId>jackson-annotations</artifactId>
  97. <version>${jackson.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.fasterxml.jackson.module</groupId>
  101. <artifactId>jackson-module-afterburner</artifactId>
  102. <version>${jackson.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.hibernate</groupId>
  106. <artifactId>hibernate-core</artifactId>
  107. <version>${hibernate.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.hibernate</groupId>
  111. <artifactId>hibernate-hikaricp</artifactId>
  112. <version>${hibernate.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.hibernate.javax.persistence</groupId>
  116. <artifactId>hibernate-jpa-2.1-api</artifactId>
  117. <version>${hibernate-jpa-api.version}</version>
  118. <scope>provided</scope>
  119. </dependency>
  120. <dependency>
  121. <groupId>mysql</groupId>
  122. <artifactId>mysql-connector-java</artifactId>
  123. <version>${mysql-connector.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>commons-cli</groupId>
  127. <artifactId>commons-cli</artifactId>
  128. <version>${commons-cli.version}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.glassfish.jaxb</groupId>
  132. <artifactId>jaxb-runtime</artifactId>
  133. <version>${jaxb.version}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>javax.activation</groupId>
  137. <artifactId>activation</artifactId>
  138. <version>${activation.version}</version>
  139. <!-- See https://github.com/eclipse-ee4j/jaf/issues/18 for details -->
  140. <scope>provided</scope>
  141. </dependency>
  142. </dependencies>
  143. <build>
  144. <finalName>${project.artifactId}</finalName>
  145. <directory>target</directory>
  146. <!-- Clean up this before commit -->
  147. <!-- <outputDirectory>target/classes</outputDirectory>
  148. <testOutputDirectory>target/test-classes</testOutputDirectory>
  149. <sourceDirectory>src-jersey/main/java</sourceDirectory>
  150. <scriptSourceDirectory>src-jersey/main/scripts</scriptSourceDirectory>
  151. <testSourceDirectory>src-jersey/test/java</testSourceDirectory>
  152. <resources>
  153. <resource>
  154. <directory>src-jersey/main/resources</directory>
  155. </resource>
  156. </resources>
  157. <testResources>
  158. <testResource>
  159. <directory>src-jersey/test/resources</directory>
  160. </testResource>
  161. </testResources> -->
  162. <!-- Clean up this before commit -->
  163. <plugins>
  164. <plugin>
  165. <inherited>true</inherited>
  166. <groupId>org.apache.maven.plugins</groupId>
  167. <artifactId>maven-compiler-plugin</artifactId>
  168. <version>${maven-compiler-plugin.version}</version>
  169. <configuration>
  170. <debug>false</debug>
  171. </configuration>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-shade-plugin</artifactId>
  176. <version>${maven-shade-plugin.version}</version>
  177. <executions>
  178. <execution>
  179. <phase>package</phase>
  180. <goals>
  181. <goal>shade</goal>
  182. </goals>
  183. <configuration>
  184. <transformers>
  185. <transformer
  186. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
  187. <transformer
  188. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  189. <!-- <mainClass>hello.JerseyWebServer</mainClass> -->
  190. <mainClass>hello.WebServer</mainClass>
  191. </transformer>
  192. </transformers>
  193. </configuration>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. </plugins>
  198. </build>
  199. </project>