pom.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.persagy</groupId>
  5. <artifactId>saas-platform</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <packaging>pom</packaging>
  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>1.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. <!-- 三方jar依赖 -->
  21. <mybatis-plus.version>3.3.1</mybatis-plus.version>
  22. <guava.version>20.0</guava.version>
  23. <!-- maven依赖 -->
  24. <maven.compiler.version>3.8.0</maven.compiler.version>
  25. <maven.surefire.version>2.22.1</maven.surefire.version>
  26. <maven.source.version>3.0.1</maven.source.version>
  27. <maven.javadoc.version>3.0.1</maven.javadoc.version>
  28. <maven.gpg.version>1.6</maven.gpg.version>
  29. <maven.jacoco.version>0.8.3</maven.jacoco.version>
  30. <maven.jar.version>3.1.0</maven.jar.version>
  31. <maven.pmd.version>3.8</maven.pmd.version>
  32. </properties>
  33. <dependencyManagement>
  34. <dependencies>
  35. <dependency>
  36. <groupId>com.persagy</groupId>
  37. <artifactId>integrated-platform</artifactId>
  38. <version>${integrated-platform.version}</version>
  39. <type>pom</type>
  40. <scope>import</scope>
  41. </dependency>
  42. <!-- saas-common -->
  43. <dependency>
  44. <groupId>com.persagy</groupId>
  45. <artifactId>saas-common</artifactId>
  46. <version>${project.version}</version>
  47. </dependency>
  48. </dependencies>
  49. </dependencyManagement>
  50. <!-- 公共依赖 -->
  51. <dependencies>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-test</artifactId>
  59. </dependency>
  60. <!--需要引入该jar才能使bootstrap配置文件生效 -->
  61. <dependency>
  62. <groupId>org.springframework.cloud</groupId>
  63. <artifactId>spring-cloud-context</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-configuration-processor</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.projectlombok</groupId>
  71. <artifactId>lombok</artifactId>
  72. </dependency>
  73. </dependencies>
  74. <build>
  75. <plugins>
  76. <plugin>
  77. <groupId>org.apache.maven.plugins</groupId>
  78. <artifactId>maven-pmd-plugin</artifactId>
  79. <version>${maven.pmd.version}</version>
  80. <configuration>
  81. <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
  82. <minimumPriority>1</minimumPriority>
  83. <excludeRoots>
  84. <excludeRoot>com/alibaba/csp/sentinel/benchmark</excludeRoot>
  85. </excludeRoots>
  86. <excludes>
  87. <exclude>**/*_jmhTest.java</exclude>
  88. </excludes>
  89. <printFailingErrors>true</printFailingErrors>
  90. <rulesets>
  91. <ruleset>rulesets/java/ali-comment.xml</ruleset>
  92. <ruleset>rulesets/java/ali-concurrent.xml</ruleset>
  93. <ruleset>rulesets/java/ali-constant.xml</ruleset>
  94. <ruleset>rulesets/java/ali-exception.xml</ruleset>
  95. <ruleset>rulesets/java/ali-flowcontrol.xml</ruleset>
  96. <ruleset>rulesets/java/ali-naming.xml</ruleset>
  97. <ruleset>rulesets/java/ali-oop.xml</ruleset>
  98. <ruleset>rulesets/java/ali-orm.xml</ruleset>
  99. <ruleset>rulesets/java/ali-other.xml</ruleset>
  100. <ruleset>rulesets/java/ali-set.xml</ruleset>
  101. </rulesets>
  102. </configuration>
  103. <executions>
  104. <execution>
  105. <phase>verify</phase>
  106. <goals>
  107. <goal>check</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. <dependencies>
  112. <dependency>
  113. <groupId>com.alibaba.p3c</groupId>
  114. <artifactId>p3c-pmd</artifactId>
  115. <version>1.3.6</version>
  116. </dependency>
  117. </dependencies>
  118. </plugin>
  119. <plugin>
  120. <groupId>org.apache.maven.plugins</groupId>
  121. <artifactId>maven-compiler-plugin</artifactId>
  122. <version>${maven.compiler.version}</version>
  123. <configuration>
  124. <source>${java.source.version}</source>
  125. <target>${java.target.version}</target>
  126. <encoding>${java.encoding}</encoding>
  127. </configuration>
  128. </plugin>
  129. <plugin>
  130. <groupId>org.apache.maven.plugins</groupId>
  131. <artifactId>maven-surefire-plugin</artifactId>
  132. <configuration>
  133. <!-- CircleCI build workaround -->
  134. <argLine>@{argLine} -Xms1024m -Xmx2048m</argLine>
  135. <argLine>-Dfile.encoding=UTF-8</argLine>
  136. <useSystemClassLoader>false</useSystemClassLoader>
  137. </configuration>
  138. </plugin>
  139. <plugin>
  140. <groupId>org.jacoco</groupId>
  141. <artifactId>jacoco-maven-plugin</artifactId>
  142. <version>${maven.jacoco.version}</version>
  143. <executions>
  144. <execution>
  145. <goals>
  146. <goal>prepare-agent</goal>
  147. </goals>
  148. </execution>
  149. <execution>
  150. <id>report</id>
  151. <phase>test</phase>
  152. <goals>
  153. <goal>report</goal>
  154. </goals>
  155. </execution>
  156. </executions>
  157. </plugin>
  158. </plugins>
  159. <pluginManagement>
  160. <plugins>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-surefire-plugin</artifactId>
  164. <version>${maven.surefire.version}</version>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-jar-plugin</artifactId>
  169. <version>${maven.jar.version}</version>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-gpg-plugin</artifactId>
  174. <version>${maven.gpg.version}</version>
  175. </plugin>
  176. </plugins>
  177. </pluginManagement>
  178. </build>
  179. <profiles>
  180. <profile>
  181. <build>
  182. <plugins>
  183. <!-- Source -->
  184. <plugin>
  185. <groupId>org.apache.maven.plugins</groupId>
  186. <artifactId>maven-source-plugin</artifactId>
  187. <version>${maven.source.version}</version>
  188. <executions>
  189. <execution>
  190. <phase>package</phase>
  191. <goals>
  192. <goal>jar-no-fork</goal>
  193. </goals>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. <!-- Javadoc -->
  198. <plugin>
  199. <groupId>org.apache.maven.plugins</groupId>
  200. <artifactId>maven-javadoc-plugin</artifactId>
  201. <version>${maven.javadoc.version}</version>
  202. <executions>
  203. <execution>
  204. <phase>package</phase>
  205. <goals>
  206. <goal>jar</goal>
  207. </goals>
  208. <configuration>
  209. <locale>en_US</locale>
  210. <encoding>UTF-8</encoding>
  211. <charset>UTF-8</charset>
  212. <doclint>none</doclint>
  213. </configuration>
  214. </execution>
  215. </executions>
  216. </plugin>
  217. <!-- GPG -->
  218. <plugin>
  219. <groupId>org.apache.maven.plugins</groupId>
  220. <artifactId>maven-gpg-plugin</artifactId>
  221. <version>${maven.gpg.version}</version>
  222. <executions>
  223. <execution>
  224. <phase>verify</phase>
  225. <goals>
  226. <goal>sign</goal>
  227. </goals>
  228. </execution>
  229. </executions>
  230. </plugin>
  231. </plugins>
  232. </build>
  233. </profile>
  234. </profiles>
  235. <repositories>
  236. <repository>
  237. <id>persagy</id>
  238. <name>releases Repository</name>
  239. <url>http://47.93.132.139:8081/nexus/content/repositories/persagy/</url>
  240. </repository>
  241. <repository>
  242. <id>integrated</id>
  243. <name>releases Repository</name>
  244. <url>http://47.93.132.139:8081/nexus/content/repositories/integrated/</url>
  245. <snapshots>
  246. <enabled>false</enabled>
  247. </snapshots>
  248. </repository>
  249. <repository>
  250. <id>aliyun</id>
  251. <name>releases Repository</name>
  252. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  253. </repository>
  254. </repositories>
  255. <pluginRepositories>
  256. <pluginRepository>
  257. <id>central</id>
  258. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  259. </pluginRepository>
  260. </pluginRepositories>
  261. <modules>
  262. <module>saas-common</module>
  263. <module>saas-gateway</module>
  264. <module>saas-account</module>
  265. <module>saas-sso</module>
  266. </modules>
  267. </project>