pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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>1.7.36</slf4j.version>
  15. <logback.version>1.2.13</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. <finalName>JTT1078server</finalName>
  76. <plugins>
  77. <!-- Git提交信息插件 -->
  78. <plugin>
  79. <groupId>io.github.git-commit-id</groupId>
  80. <artifactId>git-commit-id-maven-plugin</artifactId>
  81. <version>5.0.0</version>
  82. <executions>
  83. <execution>
  84. <goals>
  85. <goal>revision</goal>
  86. </goals>
  87. </execution>
  88. </executions>
  89. <configuration>
  90. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  91. <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
  92. <injectAllReactorProjects>true</injectAllReactorProjects>
  93. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  94. <failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo>
  95. </configuration>
  96. </plugin>
  97. <!-- 执行插件 -->
  98. <plugin>
  99. <groupId>org.codehaus.mojo</groupId>
  100. <artifactId>exec-maven-plugin</artifactId>
  101. <version>3.1.0</version>
  102. <configuration>
  103. <mainClass>com.jttserver.Server</mainClass>
  104. </configuration>
  105. </plugin>
  106. <!-- Maven打包插件 -->
  107. <plugin>
  108. <groupId>org.apache.maven.plugins</groupId>
  109. <artifactId>maven-assembly-plugin</artifactId>
  110. <version>3.6.0</version>
  111. <configuration>
  112. <descriptorRefs>
  113. <descriptorRef>jar-with-dependencies</descriptorRef>
  114. </descriptorRefs>
  115. <archive>
  116. <manifest>
  117. <mainClass>com.jttserver.Server</mainClass>
  118. </manifest>
  119. </archive>
  120. <appendAssemblyId>false</appendAssemblyId>
  121. </configuration>
  122. <executions>
  123. <execution>
  124. <id>make-assembly</id>
  125. <phase>package</phase>
  126. <goals>
  127. <goal>single</goal>
  128. </goals>
  129. </execution>
  130. </executions>
  131. </plugin>
  132. </plugins>
  133. </build>
  134. </project>