pom.xml 3.9 KB

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