pom.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. <groupId>com.techempower</groupId>
  7. <artifactId>undertow-example</artifactId>
  8. <version>0.1</version>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. </properties>
  12. <dependencies>
  13. <!-- Web server -->
  14. <dependency>
  15. <groupId>io.undertow</groupId>
  16. <artifactId>undertow-core</artifactId>
  17. <version>1.2.5.Final</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.jboss.xnio</groupId>
  21. <artifactId>xnio-api</artifactId>
  22. <version>3.3.1.Final</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.jboss.xnio</groupId>
  26. <artifactId>xnio-nio</artifactId>
  27. <version>3.3.1.Final</version>
  28. </dependency>
  29. <!-- Database drivers -->
  30. <dependency>
  31. <groupId>mysql</groupId>
  32. <artifactId>mysql-connector-java</artifactId>
  33. <version>5.1.30</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.postgresql</groupId>
  37. <artifactId>postgresql</artifactId>
  38. <version>9.4-1200-jdbc41</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.mongodb</groupId>
  42. <artifactId>mongo-java-driver</artifactId>
  43. <version>2.11.2</version>
  44. </dependency>
  45. <!-- Database connection pooling -->
  46. <dependency>
  47. <groupId>commons-dbcp</groupId>
  48. <artifactId>commons-dbcp</artifactId>
  49. <version>1.4</version>
  50. </dependency>
  51. <!-- Caching (and misc. utilities) -->
  52. <dependency>
  53. <groupId>com.google.guava</groupId>
  54. <artifactId>guava</artifactId>
  55. <version>18.0</version>
  56. </dependency>
  57. <!-- JSON encoding -->
  58. <dependency>
  59. <groupId>com.fasterxml.jackson.core</groupId>
  60. <artifactId>jackson-databind</artifactId>
  61. <version>2.5.3</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.fasterxml.jackson.core</groupId>
  65. <artifactId>jackson-annotations</artifactId>
  66. <version>2.5.3</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.fasterxml.jackson.core</groupId>
  70. <artifactId>jackson-core</artifactId>
  71. <version>2.5.3</version>
  72. </dependency>
  73. <!-- HTML templates -->
  74. <dependency>
  75. <groupId>com.github.spullara.mustache.java</groupId>
  76. <artifactId>compiler</artifactId>
  77. <version>0.9.0</version>
  78. </dependency>
  79. </dependencies>
  80. <build>
  81. <plugins>
  82. <plugin>
  83. <inherited>true</inherited>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-compiler-plugin</artifactId>
  86. <version>3.1</version>
  87. <configuration>
  88. <source>1.8</source>
  89. <target>1.8</target>
  90. <optimize>true</optimize>
  91. <debug>false</debug>
  92. </configuration>
  93. </plugin>
  94. <plugin>
  95. <artifactId>maven-assembly-plugin</artifactId>
  96. <configuration>
  97. <archive>
  98. <manifest>
  99. <mainClass>hello.HelloWebServer</mainClass>
  100. </manifest>
  101. </archive>
  102. <descriptorRefs>
  103. <descriptorRef>jar-with-dependencies</descriptorRef>
  104. </descriptorRefs>
  105. </configuration>
  106. <executions>
  107. <execution>
  108. <id>make-assembly</id> <!-- this is used for inheritance merges -->
  109. <phase>package</phase> <!-- bind to the packaging phase -->
  110. <goals>
  111. <goal>single</goal>
  112. </goals>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. </plugins>
  117. </build>
  118. </project>