pom.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>org.springframework.boot</groupId>
  6. <artifactId>spring-boot-starter-parent</artifactId>
  7. <version>2.3.12.RELEASE</version>
  8. <relativePath/>
  9. </parent>
  10. <groupId>com.persagy</groupId>
  11. <artifactId>simulator-collector</artifactId>
  12. <version>0.0.1-SNAPSHOT</version>
  13. <packaging>jar</packaging>
  14. <name>simulator-collector</name>
  15. <url>http://maven.apache.org</url>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <knife4j.version>3.0.3</knife4j.version>
  21. <swagger-annotations.version>1.5.22</swagger-annotations.version>
  22. <spring-boot.version>2.4.2</spring-boot.version>
  23. <!--日志框架有安全漏洞,升级最新版本-->
  24. <logback.version>1.2.9</logback.version>
  25. <log4j2.version>2.17.0</log4j2.version>
  26. <xstream.version>1.4.18</xstream.version>
  27. <easyexcel.version>3.0.5</easyexcel.version>
  28. <fastjson.version>1.2.83</fastjson.version>
  29. </properties>
  30. <repositories>
  31. <repository>
  32. <id>SagaCloud</id>
  33. <name>SagaCloud</name>
  34. <url>http://47.93.33.207:8082/repository/SagaCloud/</url>
  35. <snapshots>
  36. <enabled>true</enabled>
  37. </snapshots>
  38. <releases>
  39. <enabled>true</enabled>
  40. </releases>
  41. </repository>
  42. <repository>
  43. <id>alimaven</id>
  44. <name>aliyun maven</name>
  45. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  46. </repository>
  47. <repository>
  48. <id>mvnrepository</id>
  49. <url>https://mvnrepository.com/</url>
  50. </repository>
  51. <repository>
  52. <id>sonatype-nexus-snapshots</id>
  53. <name>Sonatype Nexus Snapshots</name>
  54. <url>http://oss.sonatype.org/content/repositories/snapshots</url>
  55. </repository>
  56. </repositories>
  57. <dependencies>
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-web</artifactId>
  61. </dependency>
  62. <!-- <dependency>-->
  63. <!-- <groupId>jdk.tools</groupId>-->
  64. <!-- <artifactId>jdk.tools</artifactId>-->
  65. <!-- <version>1.8</version>-->
  66. <!-- <scope>system</scope>-->
  67. <!-- <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>-->
  68. <!-- </dependency>-->
  69. <!-- 工具类相关 -->
  70. <dependency>
  71. <groupId>com.alibaba</groupId>
  72. <artifactId>easyexcel</artifactId>
  73. <version>${easyexcel.version}</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>dom4j</groupId>
  77. <artifactId>dom4j</artifactId>
  78. <version>1.6.1</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>jaxen</groupId>
  82. <artifactId>jaxen</artifactId>
  83. <version>1.1.6</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.mina</groupId>
  87. <artifactId>mina-core</artifactId>
  88. <version>2.1.5</version>
  89. </dependency>
  90. <!--lombok -->
  91. <dependency>
  92. <groupId>org.projectlombok</groupId>
  93. <artifactId>lombok</artifactId>
  94. <optional>true</optional>
  95. <version>1.18.12</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>cn.hutool</groupId>
  99. <artifactId>hutool-all</artifactId>
  100. <version>5.5.4</version>
  101. <scope>compile</scope>
  102. </dependency>
  103. <!-- <dependency>-->
  104. <!-- <groupId>org.apache.poi</groupId>-->
  105. <!-- <artifactId>poi</artifactId>-->
  106. <!-- <version>3.9</version>-->
  107. <!-- </dependency>-->
  108. <!-- <dependency>-->
  109. <!-- <groupId>org.apache.poi</groupId>-->
  110. <!-- <artifactId>poi-ooxml</artifactId>-->
  111. <!-- <version>3.9</version>-->
  112. <!-- </dependency>-->
  113. <dependency>
  114. <groupId>org.antlr</groupId>
  115. <artifactId>antlr-runtime</artifactId>
  116. <version>3.1</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.alibaba</groupId>
  120. <artifactId>fastjson</artifactId>
  121. <version>${fastjson.version}</version>
  122. </dependency>
  123. <!-- netty 实现websocket -->
  124. <dependency>
  125. <groupId>io.netty</groupId>
  126. <artifactId>netty-all</artifactId>
  127. <version>4.1.62.Final</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.eclipse.paho</groupId>
  131. <artifactId>org.eclipse.paho.client.mqttv3</artifactId>
  132. <version>1.2.5</version>
  133. </dependency>
  134. <!--mqtt认证-->
  135. <dependency>
  136. <groupId>bouncycastle</groupId>
  137. <artifactId>bcprov-jdk15</artifactId>
  138. <version>140</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.apache.commons</groupId>
  142. <artifactId>commons-lang3</artifactId>
  143. <version>3.11</version>
  144. <scope>compile</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>com.github.xiaoymin</groupId>
  148. <artifactId>knife4j-spring-boot-starter</artifactId>
  149. <version>${knife4j.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>io.swagger</groupId>
  153. <artifactId>swagger-annotations</artifactId>
  154. <version>${swagger-annotations.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.springframework.boot</groupId>
  158. <artifactId>spring-boot-starter-validation</artifactId>
  159. </dependency>
  160. </dependencies>
  161. <build>
  162. <finalName>${project.artifactId}</finalName>
  163. <plugins>
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-compiler-plugin</artifactId>
  167. <version>3.8.1</version>
  168. <configuration>
  169. <source>8</source>
  170. <target>8</target>
  171. </configuration>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.springframework.boot</groupId>
  175. <artifactId>spring-boot-maven-plugin</artifactId>
  176. <version>2.4.2</version>
  177. <executions>
  178. <execution>
  179. <goals>
  180. <goal>repackage</goal>
  181. </goals>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. <!--拷贝资源文件 copy-resources-->
  186. <plugin>
  187. <groupId>org.apache.maven.plugins</groupId>
  188. <artifactId>maven-resources-plugin</artifactId>
  189. <version>2.6</version>
  190. <executions>
  191. <execution>
  192. <id>copy-resources</id>
  193. <phase>package</phase>
  194. <goals>
  195. <goal>copy-resources</goal>
  196. </goals>
  197. <configuration>
  198. <resources>
  199. <resource>
  200. <directory>src/main/resources/</directory>
  201. <includes>
  202. <include>*.properties</include>
  203. <include>*.xml</include>
  204. <include>*.json</include>
  205. </includes>
  206. </resource>
  207. </resources>
  208. <outputDirectory>${project.build.directory}/config</outputDirectory>
  209. </configuration>
  210. </execution>
  211. <!--拷贝启动脚本-->
  212. <execution>
  213. <id>copy-version</id>
  214. <phase>package</phase>
  215. <goals>
  216. <goal>copy-resources</goal>
  217. </goals>
  218. <configuration>
  219. <resources>
  220. <resource>
  221. <directory>src/script</directory>
  222. </resource>
  223. </resources>
  224. <outputDirectory>${project.build.directory}</outputDirectory>
  225. </configuration>
  226. </execution>
  227. </executions>
  228. </plugin>
  229. </plugins>
  230. </build>
  231. <distributionManagement>
  232. <repository>
  233. <id>SagaCloudRelease</id>
  234. <name>User Project Release</name>
  235. <url>http://47.93.33.207:8082/repository/SagaCloudRelease/</url>
  236. </repository>
  237. <snapshotRepository>
  238. <id>SagaCloudRelease</id>
  239. <name>User Project SNAPSHOTS</name>
  240. <url>http://47.93.33.207:8082/repository/SagaCloudSnapshot/</url>
  241. </snapshotRepository>
  242. </distributionManagement>
  243. </project>