pom.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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>netty-example</artifactId>
  6. <version>0.1</version>
  7. <properties>
  8. <netty.version>4.1.16.Final</netty.version>
  9. </properties>
  10. <packaging>jar</packaging>
  11. <dependencies>
  12. <dependency>
  13. <groupId>io.netty</groupId>
  14. <artifactId>netty-codec-http</artifactId>
  15. <version>${netty.version}</version>
  16. </dependency>
  17. <dependency>
  18. <groupId>io.netty</groupId>
  19. <artifactId>netty-transport-native-epoll</artifactId>
  20. <version>${netty.version}</version>
  21. <classifier>linux-x86_64</classifier>
  22. </dependency>
  23. <dependency>
  24. <groupId>io.netty</groupId>
  25. <artifactId>netty-transport-native-kqueue</artifactId>
  26. <version>${netty.version}</version>
  27. <classifier>osx-x86_64</classifier>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.fasterxml.jackson.module</groupId>
  31. <artifactId>jackson-module-afterburner</artifactId>
  32. <version>RELEASE</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>javassist</groupId>
  36. <artifactId>javassist</artifactId>
  37. <version>RELEASE</version>
  38. </dependency>
  39. </dependencies>
  40. <build>
  41. <plugins>
  42. <plugin>
  43. <inherited>true</inherited>
  44. <groupId>org.apache.maven.plugins</groupId>
  45. <artifactId>maven-compiler-plugin</artifactId>
  46. <version>3.5</version>
  47. <configuration>
  48. <source>1.8</source>
  49. <target>1.8</target>
  50. <optimize>true</optimize>
  51. <debug>false</debug>
  52. </configuration>
  53. </plugin>
  54. <plugin>
  55. <artifactId>maven-assembly-plugin</artifactId>
  56. <configuration>
  57. <archive>
  58. <manifest>
  59. <mainClass>hello.HelloWebServer</mainClass>
  60. </manifest>
  61. </archive>
  62. <descriptorRefs>
  63. <descriptorRef>jar-with-dependencies</descriptorRef>
  64. </descriptorRefs>
  65. </configuration>
  66. <executions>
  67. <execution>
  68. <id>make-assembly</id> <!-- this is used for inheritance merges -->
  69. <phase>package</phase> <!-- bind to the packaging phase -->
  70. <goals>
  71. <goal>single</goal>
  72. </goals>
  73. </execution>
  74. </executions>
  75. </plugin>
  76. </plugins>
  77. </build>
  78. </project>