pom.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.sp.director</groupId>
  7. <artifactId>director</artifactId>
  8. <version>1.0.0</version>
  9. <relativePath>../pom.xml</relativePath>
  10. </parent>
  11. <groupId>com.sp.director</groupId>
  12. <artifactId>socket</artifactId>
  13. <version>1.0.0</version>
  14. <packaging>jar</packaging>
  15. <name>socket</name>
  16. <description>Demo project for Spring Boot</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.projectlombok</groupId>
  23. <artifactId>lombok</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-configuration-processor</artifactId>
  28. <optional>true</optional>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.corundumstudio.socketio</groupId>
  32. <artifactId>netty-socketio</artifactId>
  33. <version>1.7.7</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework</groupId>
  37. <artifactId>spring-context</artifactId>
  38. <scope>compile</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-web</artifactId>
  43. </dependency>
  44. <!-- 导入数据源 -->
  45. <dependency>
  46. <groupId>com.alibaba</groupId>
  47. <artifactId>druid-spring-boot-starter</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.sp.director</groupId>
  51. <artifactId>core</artifactId>
  52. <version>${director-version}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.baomidou</groupId>
  56. <artifactId>mybatis-plus-boot-starter</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.commons</groupId>
  60. <artifactId>commons-pool2</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-test</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. </dependencies>
  68. <build>
  69. <finalName>director-socket</finalName>
  70. <plugins>
  71. <!-- 配置Maven的JDK编译级别 -->
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-compiler-plugin</artifactId>
  75. <version>3.2</version>
  76. <configuration>
  77. <source>1.8</source>
  78. <target>1.8</target>
  79. <encoding>UTF-8</encoding>
  80. <compilerArgs>
  81. <arg>-parameters</arg>
  82. </compilerArgs>
  83. </configuration>
  84. </plugin>
  85. <plugin>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-maven-plugin</artifactId>
  88. <configuration>
  89. <includeSystemScope>true</includeSystemScope>
  90. </configuration>
  91. </plugin>
  92. <!-- 打包的时候跳过测试用例 -->
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-surefire-plugin</artifactId>
  96. <version>2.18.1</version>
  97. <configuration>
  98. <skipTests>true</skipTests>
  99. </configuration>
  100. </plugin>
  101. </plugins>
  102. <resources>
  103. <resource>
  104. <directory>src/main/java</directory>
  105. <includes>
  106. <include>**/*.xml</include>
  107. </includes>
  108. <filtering>true</filtering>
  109. </resource>
  110. <resource>
  111. <directory>src/main/resources</directory>
  112. <includes>
  113. <include>**/*.*</include>
  114. </includes>
  115. <filtering>true</filtering>
  116. </resource>
  117. </resources>
  118. </build>
  119. </project>