pom.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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.0</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. <!-- 引入netty框架 -->
  29. <dependency>
  30. <groupId>io.netty</groupId>
  31. <artifactId>netty-all</artifactId>
  32. <version>4.1.92.Final</version>
  33. </dependency>
  34. <!--starter-web-->
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-web</artifactId>
  38. </dependency>
  39. <!--lombok-->
  40. <dependency>
  41. <groupId>org.projectlombok</groupId>
  42. <artifactId>lombok</artifactId>
  43. <scope>provided</scope>
  44. </dependency>
  45. <!-- springboot-test -->
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-test</artifactId>
  49. <scope>test</scope>
  50. </dependency>
  51. </dependencies>
  52. <dependencyManagement>
  53. <dependencies>
  54. <!-- 当不把spring-boot-parent
  55. 作为parent项目时,需要使用dependencyManagement引入spring-boot-dependencies管理依赖 -->
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-dependencies</artifactId>
  59. <version>2.6.14</version>
  60. <type>pom</type>
  61. <scope>import</scope>
  62. </dependency>
  63. </dependencies>
  64. </dependencyManagement>
  65. <build>
  66. <finalName>esb-socket</finalName>
  67. <plugins>
  68. <plugin>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-maven-plugin</artifactId>
  71. <version>2.6.14</version>
  72. <executions>
  73. <execution>
  74. <goals>
  75. <goal>repackage</goal>
  76. </goals>
  77. </execution>
  78. </executions>
  79. <configuration>
  80. <classifier>exec</classifier>
  81. </configuration>
  82. </plugin>
  83. </plugins>
  84. </build>
  85. </project>