pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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.jttserver</groupId>
  7. <artifactId>jttserver</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <maven.compiler.source>8</maven.compiler.source>
  11. <maven.compiler.target>8</maven.compiler.target>
  12. <junit.version>5.9.2</junit.version>
  13. <netty.version>4.1.100.Final</netty.version>
  14. <slf4j.version>2.0.9</slf4j.version>
  15. <logback.version>1.4.14</logback.version>
  16. </properties>
  17. <dependencies>
  18. <!-- Netty核心依赖 -->
  19. <dependency>
  20. <groupId>io.netty</groupId>
  21. <artifactId>netty-buffer</artifactId>
  22. <version>${netty.version}</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>io.netty</groupId>
  26. <artifactId>netty-common</artifactId>
  27. <version>${netty.version}</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>io.netty</groupId>
  31. <artifactId>netty-transport</artifactId>
  32. <version>${netty.version}</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>io.netty</groupId>
  36. <artifactId>netty-codec</artifactId>
  37. <version>${netty.version}</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>io.netty</groupId>
  41. <artifactId>netty-codec-http</artifactId>
  42. <version>${netty.version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.junit.jupiter</groupId>
  46. <artifactId>junit-jupiter-api</artifactId>
  47. <version>${junit.version}</version>
  48. <scope>test</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.junit.jupiter</groupId>
  52. <artifactId>junit-jupiter-engine</artifactId>
  53. <version>${junit.version}</version>
  54. <scope>test</scope>
  55. </dependency>
  56. <!-- SLF4J 日志框架 -->
  57. <dependency>
  58. <groupId>org.slf4j</groupId>
  59. <artifactId>slf4j-api</artifactId>
  60. <version>${slf4j.version}</version>
  61. </dependency>
  62. <!-- Logback 日志实现 -->
  63. <dependency>
  64. <groupId>ch.qos.logback</groupId>
  65. <artifactId>logback-classic</artifactId>
  66. <version>${logback.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>ch.qos.logback</groupId>
  70. <artifactId>logback-core</artifactId>
  71. <version>${logback.version}</version>
  72. </dependency>
  73. </dependencies>
  74. <build>
  75. <plugins>
  76. <!-- Git提交信息插件 -->
  77. <plugin>
  78. <groupId>io.github.git-commit-id</groupId>
  79. <artifactId>git-commit-id-maven-plugin</artifactId>
  80. <version>5.0.0</version>
  81. <executions>
  82. <execution>
  83. <goals>
  84. <goal>revision</goal>
  85. </goals>
  86. </execution>
  87. </executions>
  88. <configuration>
  89. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  90. <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
  91. <injectAllReactorProjects>true</injectAllReactorProjects>
  92. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  93. <failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo>
  94. </configuration>
  95. </plugin>
  96. <!-- 执行插件 -->
  97. <plugin>
  98. <groupId>org.codehaus.mojo</groupId>
  99. <artifactId>exec-maven-plugin</artifactId>
  100. <version>3.1.0</version>
  101. <configuration>
  102. <mainClass>com.jttserver.Server</mainClass>
  103. </configuration>
  104. </plugin>
  105. </plugins>
  106. </build>
  107. </project>