pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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.nokia</groupId>
  7. <artifactId>esb-socket</artifactId>
  8. <version>1.1</version>
  9. <packaging>jar</packaging>
  10. <properties>
  11. <!-- 跳过测试代码 -->
  12. <skipTests>true</skipTests>
  13. <!-- 指定java的版本 -->
  14. <java.version>1.8</java.version>
  15. <!-- 文件拷贝时的编码 -->
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  18. <!-- 指定maven-compiler-plugin的配置属性开始 -->
  19. <!-- 编译时的编码 -->
  20. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  21. <!-- 指定编译的版本 -->
  22. <maven.compiler.source>1.8</maven.compiler.source>
  23. <maven.compiler.target>1.8</maven.compiler.target>
  24. <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
  25. <!-- 指定maven-compiler-plugin的配置属性结束 -->
  26. </properties>
  27. <dependencies>
  28. <dependency>
  29. <groupId>com.nokia</groupId>
  30. <artifactId>request-log-interceptor-starter</artifactId>
  31. <version>1.0</version>
  32. </dependency>
  33. <!-- 引入netty框架 -->
  34. <dependency>
  35. <groupId>io.netty</groupId>
  36. <artifactId>netty-all</artifactId>
  37. <version>4.1.92.Final</version>
  38. </dependency>
  39. <!--starter-web-->
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-web</artifactId>
  43. </dependency>
  44. <!--lombok-->
  45. <dependency>
  46. <groupId>org.projectlombok</groupId>
  47. <artifactId>lombok</artifactId>
  48. <scope>provided</scope>
  49. </dependency>
  50. <!-- springboot-test -->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-test</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. </dependencies>
  57. <dependencyManagement>
  58. <dependencies>
  59. <!-- 当不把spring-boot-parent
  60. 作为parent项目时,需要使用dependencyManagement引入spring-boot-dependencies管理依赖 -->
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-dependencies</artifactId>
  64. <version>2.6.14</version>
  65. <type>pom</type>
  66. <scope>import</scope>
  67. </dependency>
  68. </dependencies>
  69. </dependencyManagement>
  70. <build>
  71. <finalName>esb-socket</finalName>
  72. <plugins>
  73. <plugin>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-maven-plugin</artifactId>
  76. <version>2.6.14</version>
  77. <executions>
  78. <execution>
  79. <goals>
  80. <goal>repackage</goal>
  81. </goals>
  82. </execution>
  83. </executions>
  84. <configuration>
  85. <classifier>exec</classifier>
  86. </configuration>
  87. </plugin>
  88. </plugins>
  89. </build>
  90. </project>