pom.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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.welampiot</groupId>
  7. <artifactId>CIS</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <!-- 打包war包 -->
  10. <!-- <packaging>war</packaging>-->
  11. <properties>
  12. <maven.compiler.source>8</maven.compiler.source>
  13. <maven.compiler.target>8</maven.compiler.target>
  14. <log4j2.version>2.13.3</log4j2.version>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. </properties>
  17. <!-- 导入springboot版本和框架依赖 -->
  18. <parent>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-parent</artifactId>
  21. <version>2.5.1</version>
  22. <relativePath></relativePath>
  23. </parent>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-web</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>mysql</groupId>
  31. <artifactId>mysql-connector-java</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.mybatis.spring.boot</groupId>
  35. <artifactId>mybatis-spring-boot-starter</artifactId>
  36. <version>2.2.2</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.alibaba</groupId>
  40. <artifactId>druid</artifactId>
  41. <version>1.2.3</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.alibaba</groupId>
  45. <artifactId>druid-spring-boot-starter</artifactId>
  46. <version>1.1.20</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.commons</groupId>
  50. <artifactId>commons-lang3</artifactId>
  51. <version>3.9</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.projectlombok</groupId>
  55. <artifactId>lombok</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>junit</groupId>
  59. <artifactId>junit</artifactId>
  60. <scope>test</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-test</artifactId>
  65. <scope>test</scope>
  66. <exclusions>
  67. <exclusion>
  68. <groupId>org.junit.vintage</groupId>
  69. <artifactId>junit-vintage-engine</artifactId>
  70. </exclusion>
  71. </exclusions>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-security</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework.security</groupId>
  79. <artifactId>spring-security-config</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-starter-validation</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>commons-codec</groupId>
  87. <artifactId>commons-codec</artifactId>
  88. <version>1.14</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>be.c4j.ee.security.octopus</groupId>
  92. <artifactId>authentication</artifactId>
  93. <version>0.9.7.2</version>
  94. <type>pom</type>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.alibaba</groupId>
  98. <artifactId>fastjson</artifactId>
  99. <version>1.2.33</version>
  100. </dependency>
  101. <!-- mqtt-->
  102. <dependency>
  103. <groupId>org.springframework.integration</groupId>
  104. <artifactId>spring-integration-mqtt</artifactId>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.springframework.social</groupId>
  108. <artifactId>spring-social-web</artifactId>
  109. <version>1.1.6.RELEASE</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>commons-httpclient</groupId>
  113. <artifactId>commons-httpclient</artifactId>
  114. <version>3.1</version>
  115. </dependency>
  116. <!-- 读取远程服务器文件-->
  117. <!-- shh2 -->
  118. <dependency>
  119. <groupId>ch.ethz.ganymed</groupId>
  120. <artifactId>ganymed-ssh2</artifactId>
  121. <version>262</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.jcraft</groupId>
  125. <artifactId>jsch</artifactId>
  126. <version>0.1.53</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>commons-net</groupId>
  130. <artifactId>commons-net</artifactId>
  131. <version>3.4</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.json</groupId>
  135. <artifactId>json</artifactId>
  136. <version>20230227</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.gavaghan</groupId>
  140. <artifactId>geodesy</artifactId>
  141. <version>1.1.3</version>
  142. </dependency>
  143. <!-- excel 处理-->
  144. <dependency>
  145. <groupId>org.apache.poi</groupId>
  146. <artifactId>poi</artifactId>
  147. <version>5.2.2</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.apache.poi</groupId>
  151. <artifactId>poi-ooxml</artifactId>
  152. <version>5.2.2</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.apache.httpcomponents</groupId>
  156. <artifactId>httpclient</artifactId>
  157. <!-- <version>4.5.10</version>-->
  158. </dependency>
  159. <dependency>
  160. <groupId>org.apache.httpcomponents</groupId>
  161. <artifactId>httpmime</artifactId>
  162. <version>4.5.12</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>org.apache.httpcomponents</groupId>
  166. <artifactId>httpclient</artifactId>
  167. <version>4.5.13</version>
  168. </dependency>
  169. <!-- 通过JWT(JSON Web Token)进行数字签名-->
  170. <dependency>
  171. <groupId>io.jsonwebtoken</groupId>
  172. <artifactId>jjwt</artifactId>
  173. <version>0.9.1</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-starter-data-redis</artifactId>
  178. </dependency>
  179. </dependencies>
  180. <repositories> <!-- 配置阿里云镜像仓库 -->
  181. <repository>
  182. <id>nexus-aliyun</id>
  183. <name>nexus-aliyun</name>
  184. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  185. <releases>
  186. <enabled>true</enabled>
  187. </releases>
  188. <snapshots>
  189. <enabled>false</enabled>
  190. </snapshots>
  191. </repository>
  192. </repositories>
  193. <!-- maven多环境打包配置 -->
  194. <profiles>
  195. <!-- 测试环境 -->
  196. <profile>
  197. <id>test</id>
  198. <properties>
  199. <profiles.active>test</profiles.active>
  200. </properties>
  201. <!-- 设置为默认环境 -->
  202. <activation>
  203. <activeByDefault>true</activeByDefault>
  204. </activation>
  205. </profile>
  206. <!-- 生产环境 -->
  207. <profile>
  208. <id>prod</id>
  209. <properties>
  210. <profiles.active>prod</profiles.active>
  211. </properties>
  212. </profile>
  213. </profiles>
  214. <!--添加maven插件,项目的打包工具,打成jar包,否则在打包运行时报错 -->
  215. <build>
  216. <!-- 打包名格式:项目名-环境.jar -->
  217. <finalName>${project.artifactId}-${profiles.active}</finalName>
  218. <sourceDirectory>src/main/java</sourceDirectory>
  219. <testSourceDirectory>src/test/java</testSourceDirectory>
  220. <resources>
  221. <resource>
  222. <directory>src/main/resources</directory>
  223. <excludes>
  224. <exclude>test/*</exclude>
  225. <exclude>prod/*</exclude>
  226. </excludes>
  227. </resource>
  228. <resource>
  229. <directory>src/main/resources/${profiles.active}</directory>
  230. <!-- <filtering>true</filtering>-->
  231. <includes>
  232. <include>*.yml</include>
  233. <include>*.xml</include>
  234. </includes>
  235. </resource>
  236. </resources>
  237. <plugins>
  238. <plugin>
  239. <groupId>org.springframework.boot</groupId>
  240. <artifactId>spring-boot-maven-plugin</artifactId>
  241. <version>2.2.2.RELEASE</version>
  242. <configuration>
  243. <mainClass>com.welampiot.ServerApplication</mainClass>
  244. <layout>JAR</layout>
  245. </configuration>
  246. <executions>
  247. <execution>
  248. <goals>
  249. <goal>repackage</goal>
  250. </goals>
  251. <configuration>
  252. <attach>false</attach>
  253. </configuration>
  254. </execution>
  255. </executions>
  256. </plugin>
  257. <!-- maven 打包时跳过测试 -->
  258. <plugin>
  259. <groupId>org.apache.maven.plugins</groupId>
  260. <artifactId>maven-surefire-plugin</artifactId>
  261. <configuration>
  262. <skipTests>true</skipTests>
  263. </configuration>
  264. </plugin>
  265. </plugins>
  266. </build>
  267. </project>