pom.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. </dependencies>
  170. <repositories> <!-- 配置阿里云镜像仓库 -->
  171. <repository>
  172. <id>nexus-aliyun</id>
  173. <name>nexus-aliyun</name>
  174. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  175. <releases>
  176. <enabled>true</enabled>
  177. </releases>
  178. <snapshots>
  179. <enabled>false</enabled>
  180. </snapshots>
  181. </repository>
  182. </repositories>
  183. <!-- maven多环境打包配置 -->
  184. <profiles>
  185. <!-- 测试环境 -->
  186. <profile>
  187. <id>test</id>
  188. <properties>
  189. <profiles.active>test</profiles.active>
  190. </properties>
  191. <!-- 设置为默认环境 -->
  192. <activation>
  193. <activeByDefault>true</activeByDefault>
  194. </activation>
  195. </profile>
  196. <!-- 生产环境 -->
  197. <profile>
  198. <id>prod</id>
  199. <properties>
  200. <profiles.active>prod</profiles.active>
  201. </properties>
  202. </profile>
  203. </profiles>
  204. <!--添加maven插件,项目的打包工具,打成jar包,否则在打包运行时报错 -->
  205. <build>
  206. <!-- 打包名格式:项目名-环境.jar -->
  207. <finalName>${project.artifactId}-${profiles.active}</finalName>
  208. <sourceDirectory>src/main/java</sourceDirectory>
  209. <testSourceDirectory>src/test/java</testSourceDirectory>
  210. <resources>
  211. <resource>
  212. <directory>src/main/resources</directory>
  213. <excludes>
  214. <exclude>test/*</exclude>
  215. <exclude>prod/*</exclude>
  216. </excludes>
  217. </resource>
  218. <resource>
  219. <directory>src/main/resources/${profiles.active}</directory>
  220. <!-- <filtering>true</filtering>-->
  221. <includes>
  222. <include>*.yml</include>
  223. <include>*.xml</include>
  224. </includes>
  225. </resource>
  226. </resources>
  227. <plugins>
  228. <plugin>
  229. <groupId>org.springframework.boot</groupId>
  230. <artifactId>spring-boot-maven-plugin</artifactId>
  231. <version>2.2.2.RELEASE</version>
  232. <configuration>
  233. <mainClass>com.welampiot.ServerApplication</mainClass>
  234. <layout>JAR</layout>
  235. </configuration>
  236. <executions>
  237. <execution>
  238. <goals>
  239. <goal>repackage</goal>
  240. </goals>
  241. <configuration>
  242. <attach>false</attach>
  243. </configuration>
  244. </execution>
  245. </executions>
  246. </plugin>
  247. <!-- maven 打包时跳过测试 -->
  248. <plugin>
  249. <groupId>org.apache.maven.plugins</groupId>
  250. <artifactId>maven-surefire-plugin</artifactId>
  251. <configuration>
  252. <skipTests>true</skipTests>
  253. </configuration>
  254. </plugin>
  255. </plugins>
  256. </build>
  257. </project>