pom.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.jboss</groupId>
  8. <artifactId>jboss-parent</artifactId>
  9. <version>12</version>
  10. </parent>
  11. <groupId>com.techempower</groupId>
  12. <artifactId>undertow-edge</artifactId>
  13. <version>0.1</version>
  14. <dependencies>
  15. <!-- Web server -->
  16. <dependency>
  17. <groupId>io.undertow</groupId>
  18. <artifactId>undertow-core</artifactId>
  19. <version>1.0.13.Final</version>
  20. <exclusions>
  21. <exclusion>
  22. <groupId>org.jboss.xnio</groupId>
  23. <artifactId>xnio-nio</artifactId>
  24. </exclusion>
  25. </exclusions>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.jboss.xnio</groupId>
  29. <artifactId>xnio-api</artifactId>
  30. <version>3.2.1.Final</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.jboss.xnio</groupId>
  34. <artifactId>xnio-native</artifactId>
  35. <version>1.0.0.Beta1</version>
  36. </dependency>
  37. <!-- Database drivers -->
  38. <dependency>
  39. <groupId>mysql</groupId>
  40. <artifactId>mysql-connector-java</artifactId>
  41. <version>5.1.25</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.postgresql</groupId>
  45. <artifactId>postgresql</artifactId>
  46. <version>9.4-1200-jdbc41</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.mongodb</groupId>
  50. <artifactId>mongo-java-driver</artifactId>
  51. <version>2.11.2</version>
  52. </dependency>
  53. <!-- Database connection pooling -->
  54. <dependency>
  55. <groupId>commons-dbcp</groupId>
  56. <artifactId>commons-dbcp</artifactId>
  57. <version>1.4</version>
  58. </dependency>
  59. <!-- Caching (and misc. utilities) -->
  60. <dependency>
  61. <groupId>com.google.guava</groupId>
  62. <artifactId>guava</artifactId>
  63. <version>14.0.1</version>
  64. </dependency>
  65. <!-- JSON encoding -->
  66. <dependency>
  67. <groupId>com.fasterxml.jackson.core</groupId>
  68. <artifactId>jackson-databind</artifactId>
  69. <version>2.3.0</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.fasterxml.jackson.core</groupId>
  73. <artifactId>jackson-annotations</artifactId>
  74. <version>2.3.0</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.fasterxml.jackson.core</groupId>
  78. <artifactId>jackson-core</artifactId>
  79. <version>2.3.0</version>
  80. </dependency>
  81. <!-- HTML templates -->
  82. <dependency>
  83. <groupId>com.github.spullara.mustache.java</groupId>
  84. <artifactId>compiler</artifactId>
  85. <version>0.8.13</version>
  86. </dependency>
  87. </dependencies>
  88. <build>
  89. <plugins>
  90. <plugin>
  91. <inherited>true</inherited>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-compiler-plugin</artifactId>
  94. <version>3.1</version>
  95. <configuration>
  96. <source>1.7</source>
  97. <target>1.7</target>
  98. <optimize>true</optimize>
  99. <debug>false</debug>
  100. </configuration>
  101. </plugin>
  102. <plugin>
  103. <groupId>com.googlecode.maven-download-plugin</groupId>
  104. <artifactId>maven-download-plugin</artifactId>
  105. <version>1.1.0</version>
  106. <executions>
  107. <execution>
  108. <id>install-xnio-native</id>
  109. <phase>prepare-package</phase>
  110. <goals>
  111. <goal>wget</goal>
  112. </goals>
  113. <configuration>
  114. <url>http://downloads.jboss.org/xnio/native/1.0/1.0.0.Beta1/xnio-native-1.0.0.Beta1.zip</url>
  115. <unpack>true</unpack>
  116. <outputDirectory>${project.build.directory}</outputDirectory>
  117. </configuration>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-antrun-plugin</artifactId>
  124. <executions>
  125. <execution>
  126. <phase>package</phase>
  127. <configuration>
  128. <target>
  129. <copy todir="${project.build.directory}" file="${project.build.directory}/${native.path}"/>
  130. </target>
  131. </configuration>
  132. <goals>
  133. <goal>run</goal>
  134. </goals>
  135. </execution>
  136. </executions>
  137. </plugin>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-assembly-plugin</artifactId>
  141. <version>2.4</version>
  142. <configuration>
  143. <archive>
  144. <manifest>
  145. <mainClass>hello.HelloWebServer</mainClass>
  146. </manifest>
  147. </archive>
  148. <attach>
  149. </attach>
  150. <descriptorRefs>
  151. <descriptorRef>jar-with-dependencies</descriptorRef>
  152. </descriptorRefs>
  153. </configuration>
  154. <executions>
  155. <execution>
  156. <id>make-assembly</id>
  157. <!-- this is used for inheritance merges -->
  158. <phase>package</phase>
  159. <!-- bind to the packaging phase -->
  160. <goals>
  161. <goal>single</goal>
  162. </goals>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. </plugins>
  167. </build>
  168. <profiles>
  169. <profile>
  170. <id>32bit-native</id>
  171. <activation>
  172. <os>
  173. <arch>x86</arch>
  174. </os>
  175. </activation>
  176. <properties>
  177. <native.path>linux-i686/libxnio.so</native.path>
  178. </properties>
  179. </profile>
  180. <profile>
  181. <id>64bit-native</id>
  182. <activation>
  183. <os>
  184. <arch>amd64</arch>
  185. </os>
  186. </activation>
  187. <properties>
  188. <native.path>linux-x86_64/libxnio.so</native.path>
  189. </properties>
  190. </profile>
  191. </profiles>
  192. <repositories>
  193. <repository>
  194. <id>jboss-public-repository-group</id>
  195. <name>JBoss Public Maven Repository Group</name>
  196. <url>https://repository.jboss.org/nexus/content/groups/public/</url>
  197. <layout>default</layout>
  198. <releases>
  199. <enabled>true</enabled>
  200. <updatePolicy>never</updatePolicy>
  201. </releases>
  202. <snapshots>
  203. <enabled>true</enabled>
  204. <updatePolicy>never</updatePolicy>
  205. </snapshots>
  206. </repository>
  207. </repositories>
  208. </project>