pom.xml 8.0 KB

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