pom.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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>co.ipdata.client</groupId>
  140. <artifactId>ipdata-java-client</artifactId>
  141. <version>0.2.0</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.gavaghan</groupId>
  145. <artifactId>geodesy</artifactId>
  146. <version>1.1.3</version>
  147. </dependency>
  148. <!-- excel 处理-->
  149. <dependency>
  150. <groupId>org.apache.poi</groupId>
  151. <artifactId>poi</artifactId>
  152. <version>5.2.2</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.apache.poi</groupId>
  156. <artifactId>poi-ooxml</artifactId>
  157. <version>5.2.2</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.apache.httpcomponents</groupId>
  161. <artifactId>httpclient</artifactId>
  162. <!-- <version>4.5.10</version>-->
  163. </dependency>
  164. <dependency>
  165. <groupId>org.apache.httpcomponents</groupId>
  166. <artifactId>httpmime</artifactId>
  167. <version>4.5.12</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.apache.httpcomponents</groupId>
  171. <artifactId>httpclient</artifactId>
  172. <version>4.5.13</version>
  173. </dependency>
  174. <!-- 通过JWT(JSON Web Token)进行数字签名-->
  175. <dependency>
  176. <groupId>io.jsonwebtoken</groupId>
  177. <artifactId>jjwt</artifactId>
  178. <version>0.9.1</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.springframework.boot</groupId>
  182. <artifactId>spring-boot-starter-data-redis</artifactId>
  183. </dependency>
  184. </dependencies>
  185. <repositories> <!-- 配置阿里云镜像仓库 -->
  186. <repository>
  187. <id>nexus-aliyun</id>
  188. <name>nexus-aliyun</name>
  189. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  190. <releases>
  191. <enabled>true</enabled>
  192. </releases>
  193. <snapshots>
  194. <enabled>false</enabled>
  195. </snapshots>
  196. </repository>
  197. </repositories>
  198. <!-- maven多环境打包配置 -->
  199. <profiles>
  200. <!-- 测试环境 -->
  201. <profile>
  202. <id>test</id>
  203. <properties>
  204. <profiles.active>test</profiles.active>
  205. </properties>
  206. <!-- 设置为默认环境 -->
  207. <activation>
  208. <activeByDefault>true</activeByDefault>
  209. </activation>
  210. </profile>
  211. <!-- 生产环境 -->
  212. <profile>
  213. <id>prod</id>
  214. <properties>
  215. <profiles.active>prod</profiles.active>
  216. </properties>
  217. </profile>
  218. </profiles>
  219. <!--添加maven插件,项目的打包工具,打成jar包,否则在打包运行时报错 -->
  220. <build>
  221. <!-- 打包名格式:项目名-环境.jar -->
  222. <finalName>${project.artifactId}-${profiles.active}</finalName>
  223. <sourceDirectory>src/main/java</sourceDirectory>
  224. <testSourceDirectory>src/test/java</testSourceDirectory>
  225. <resources>
  226. <resource>
  227. <directory>src/main/resources</directory>
  228. <excludes>
  229. <exclude>test/*</exclude>
  230. <exclude>prod/*</exclude>
  231. </excludes>
  232. </resource>
  233. <resource>
  234. <directory>src/main/resources/${profiles.active}</directory>
  235. <!-- <filtering>true</filtering>-->
  236. <includes>
  237. <include>*.yml</include>
  238. <include>*.xml</include>
  239. </includes>
  240. </resource>
  241. </resources>
  242. <plugins>
  243. <plugin>
  244. <groupId>org.springframework.boot</groupId>
  245. <artifactId>spring-boot-maven-plugin</artifactId>
  246. <version>2.2.2.RELEASE</version>
  247. <configuration>
  248. <mainClass>com.welampiot.ServerApplication</mainClass>
  249. <layout>JAR</layout>
  250. </configuration>
  251. <executions>
  252. <execution>
  253. <goals>
  254. <goal>repackage</goal>
  255. </goals>
  256. <configuration>
  257. <attach>false</attach>
  258. </configuration>
  259. </execution>
  260. </executions>
  261. </plugin>
  262. <!-- maven 打包时跳过测试 -->
  263. <plugin>
  264. <groupId>org.apache.maven.plugins</groupId>
  265. <artifactId>maven-surefire-plugin</artifactId>
  266. <configuration>
  267. <skipTests>true</skipTests>
  268. </configuration>
  269. </plugin>
  270. </plugins>
  271. </build>
  272. </project>