pom.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.persagy</groupId>
  6. <artifactId>ibms-switch</artifactId>
  7. <version>1.0.0</version>
  8. <properties>
  9. <!-- java版本 -->
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <java.encoding>UTF-8</java.encoding>
  12. <java.version>8</java.version>
  13. <java.source.version>1.8</java.source.version>
  14. <java.target.version>1.8</java.target.version>
  15. <!-- spring版本依赖 -->
  16. <integrated-platform.version>2.0.0</integrated-platform.version>
  17. <spring-boot-dependencies.version>2.1.14.RELEASE</spring-boot-dependencies.version>
  18. <spring-cloud-dependencies.version>Greenwich.SR6</spring-cloud-dependencies.version>
  19. <mybatis-spring-boot-starter.version>1.3.2</mybatis-spring-boot-starter.version>
  20. <dynamic-datasource-spring-boot-starter.version>3.4.1</dynamic-datasource-spring-boot-starter.version>
  21. <!-- maven依赖 -->
  22. <maven.compiler.version>3.8.0</maven.compiler.version>
  23. <maven.surefire.version>2.22.1</maven.surefire.version>
  24. <maven.source.version>3.0.1</maven.source.version>
  25. <maven.javadoc.version>3.0.1</maven.javadoc.version>
  26. <maven.gpg.version>1.6</maven.gpg.version>
  27. <maven.jacoco.version>0.8.3</maven.jacoco.version>
  28. <maven.jar.version>3.1.0</maven.jar.version>
  29. <maven.pmd.version>3.8</maven.pmd.version>
  30. </properties>
  31. <dependencyManagement>
  32. <dependencies>
  33. <dependency>
  34. <groupId>com.persagy</groupId>
  35. <artifactId>integrated-platform</artifactId>
  36. <version>${integrated-platform.version}</version>
  37. <type>pom</type>
  38. <scope>import</scope>
  39. </dependency>
  40. </dependencies>
  41. </dependencyManagement>
  42. <!-- 服务依赖 -->
  43. <dependencies>
  44. <!-- 依赖集成自定义jar -->
  45. <!-- <dependency>
  46. <groupId>com.persagy</groupId>
  47. <artifactId>integrated-config-client</artifactId>
  48. </dependency> -->
  49. <dependency>
  50. <groupId>com.persagy</groupId>
  51. <artifactId>integrated-db-spring-boot-starter</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.persagy</groupId>
  55. <artifactId>integrated-ribbon-spring-boot-starter</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.persagy</groupId>
  59. <artifactId>integrated-swagger-spring-boot-starter</artifactId>
  60. </dependency>
  61. <!-- 多数据源 -->
  62. <dependency>
  63. <groupId>com.baomidou</groupId>
  64. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  65. <version>${dynamic-datasource-spring-boot-starter.version}</version>
  66. </dependency>
  67. <!-- web -->
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-web</artifactId>
  71. </dependency>
  72. <!-- 服务注册 -->
  73. <!-- <dependency>
  74. <groupId>org.springframework.cloud</groupId>
  75. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  76. </dependency> -->
  77. <!-- mysql -->
  78. <dependency>
  79. <groupId>mysql</groupId>
  80. <artifactId>mysql-connector-java</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework</groupId>
  84. <artifactId>spring-context-support</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-starter-actuator</artifactId>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework.social</groupId>
  92. <artifactId>spring-social-security</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-starter-test</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.springframework.cloud</groupId>
  104. <artifactId>spring-cloud-context</artifactId>
  105. </dependency>
  106. <dependency>
  107. <groupId>cn.hutool</groupId>
  108. <artifactId>hutool-all</artifactId>
  109. </dependency>
  110. <!-- fastjson -->
  111. <dependency>
  112. <groupId>com.alibaba</groupId>
  113. <artifactId>fastjson</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.projectlombok</groupId>
  117. <artifactId>lombok</artifactId>
  118. </dependency>
  119. </dependencies>
  120. <build>
  121. <finalName>${project.artifactId}</finalName>
  122. <plugins>
  123. <plugin>
  124. <groupId>org.springframework.boot</groupId>
  125. <artifactId>spring-boot-maven-plugin</artifactId>
  126. <executions>
  127. <execution>
  128. <goals>
  129. <goal>repackage</goal>
  130. </goals>
  131. </execution>
  132. </executions>
  133. </plugin>
  134. <plugin>
  135. <groupId>org.apache.maven.plugins</groupId>
  136. <artifactId>maven-pmd-plugin</artifactId>
  137. <version>${maven.pmd.version}</version>
  138. <configuration>
  139. <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
  140. <minimumPriority>1</minimumPriority>
  141. <excludeRoots>
  142. <excludeRoot>com/alibaba/csp/sentinel/benchmark</excludeRoot>
  143. </excludeRoots>
  144. <excludes>
  145. <exclude>**/*_jmhTest.java</exclude>
  146. </excludes>
  147. <printFailingErrors>true</printFailingErrors>
  148. <rulesets>
  149. <ruleset>rulesets/java/ali-comment.xml</ruleset>
  150. <ruleset>rulesets/java/ali-concurrent.xml</ruleset>
  151. <ruleset>rulesets/java/ali-constant.xml</ruleset>
  152. <ruleset>rulesets/java/ali-exception.xml</ruleset>
  153. <ruleset>rulesets/java/ali-flowcontrol.xml</ruleset>
  154. <ruleset>rulesets/java/ali-naming.xml</ruleset>
  155. <ruleset>rulesets/java/ali-oop.xml</ruleset>
  156. <ruleset>rulesets/java/ali-orm.xml</ruleset>
  157. <ruleset>rulesets/java/ali-other.xml</ruleset>
  158. <ruleset>rulesets/java/ali-set.xml</ruleset>
  159. </rulesets>
  160. </configuration>
  161. <executions>
  162. <execution>
  163. <phase>verify</phase>
  164. <goals>
  165. <goal>check</goal>
  166. </goals>
  167. </execution>
  168. </executions>
  169. <dependencies>
  170. <dependency>
  171. <groupId>com.alibaba.p3c</groupId>
  172. <artifactId>p3c-pmd</artifactId>
  173. <version>1.3.6</version>
  174. </dependency>
  175. </dependencies>
  176. </plugin>
  177. <plugin>
  178. <groupId>org.apache.maven.plugins</groupId>
  179. <artifactId>maven-compiler-plugin</artifactId>
  180. <version>${maven.compiler.version}</version>
  181. <configuration>
  182. <source>${java.source.version}</source>
  183. <target>${java.target.version}</target>
  184. <encoding>${java.encoding}</encoding>
  185. </configuration>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.apache.maven.plugins</groupId>
  189. <artifactId>maven-surefire-plugin</artifactId>
  190. <configuration>
  191. <!-- CircleCI build workaround -->
  192. <argLine>@{argLine} -Xms1024m -Xmx2048m</argLine>
  193. <argLine>-Dfile.encoding=UTF-8</argLine>
  194. <useSystemClassLoader>false</useSystemClassLoader>
  195. </configuration>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.jacoco</groupId>
  199. <artifactId>jacoco-maven-plugin</artifactId>
  200. <version>${maven.jacoco.version}</version>
  201. <executions>
  202. <execution>
  203. <goals>
  204. <goal>prepare-agent</goal>
  205. </goals>
  206. </execution>
  207. <execution>
  208. <id>report</id>
  209. <phase>test</phase>
  210. <goals>
  211. <goal>report</goal>
  212. </goals>
  213. </execution>
  214. </executions>
  215. </plugin>
  216. </plugins>
  217. <pluginManagement>
  218. <plugins>
  219. <plugin>
  220. <groupId>org.apache.maven.plugins</groupId>
  221. <artifactId>maven-surefire-plugin</artifactId>
  222. <version>${maven.surefire.version}</version>
  223. </plugin>
  224. <plugin>
  225. <groupId>org.apache.maven.plugins</groupId>
  226. <artifactId>maven-jar-plugin</artifactId>
  227. <version>${maven.jar.version}</version>
  228. </plugin>
  229. <plugin>
  230. <groupId>org.apache.maven.plugins</groupId>
  231. <artifactId>maven-gpg-plugin</artifactId>
  232. <version>${maven.gpg.version}</version>
  233. </plugin>
  234. </plugins>
  235. </pluginManagement>
  236. </build>
  237. <profiles>
  238. <profile>
  239. <build>
  240. <plugins>
  241. <!-- Source -->
  242. <plugin>
  243. <groupId>org.apache.maven.plugins</groupId>
  244. <artifactId>maven-source-plugin</artifactId>
  245. <version>${maven.source.version}</version>
  246. <executions>
  247. <execution>
  248. <phase>package</phase>
  249. <goals>
  250. <goal>jar-no-fork</goal>
  251. </goals>
  252. </execution>
  253. </executions>
  254. </plugin>
  255. <!-- Javadoc -->
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-javadoc-plugin</artifactId>
  259. <version>${maven.javadoc.version}</version>
  260. <executions>
  261. <execution>
  262. <phase>package</phase>
  263. <goals>
  264. <goal>jar</goal>
  265. </goals>
  266. <configuration>
  267. <locale>en_US</locale>
  268. <encoding>UTF-8</encoding>
  269. <charset>UTF-8</charset>
  270. <doclint>none</doclint>
  271. </configuration>
  272. </execution>
  273. </executions>
  274. </plugin>
  275. <!-- GPG -->
  276. <plugin>
  277. <groupId>org.apache.maven.plugins</groupId>
  278. <artifactId>maven-gpg-plugin</artifactId>
  279. <version>${maven.gpg.version}</version>
  280. <executions>
  281. <execution>
  282. <phase>verify</phase>
  283. <goals>
  284. <goal>sign</goal>
  285. </goals>
  286. </execution>
  287. </executions>
  288. </plugin>
  289. </plugins>
  290. </build>
  291. </profile>
  292. </profiles>
  293. <repositories>
  294. <repository>
  295. <id>persagy</id>
  296. <name>releases Repository</name>
  297. <url>http://47.93.132.139:8081/nexus/content/repositories/persagy/</url>
  298. </repository>
  299. <repository>
  300. <id>integrated</id>
  301. <name>releases Repository</name>
  302. <url>http://47.93.132.139:8081/nexus/content/repositories/integrated/</url>
  303. <snapshots>
  304. <enabled>false</enabled>
  305. </snapshots>
  306. </repository>
  307. <repository>
  308. <id>aliyun</id>
  309. <name>releases Repository</name>
  310. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  311. </repository>
  312. </repositories>
  313. <pluginRepositories>
  314. <pluginRepository>
  315. <id>central</id>
  316. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  317. </pluginRepository>
  318. </pluginRepositories>
  319. </project>