pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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. <modules>
  7. <module>base-servers</module>
  8. <module>framework</module>
  9. <module>applications</module>
  10. </modules>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>2.0.4.RELEASE</version>
  15. </parent>
  16. <groupId>com.usoftchina.saas</groupId>
  17. <artifactId>saas-platform</artifactId>
  18. <packaging>pom</packaging>
  19. <version>${project.release.version}</version>
  20. <description>saas framework parent</description>
  21. <properties>
  22. <project.release.version>1.0.0-SNAPSHOT</project.release.version>
  23. <java.version>1.8</java.version>
  24. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  25. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  26. <spring.boot.version>2.0.4.RELEASE</spring.boot.version>
  27. <spring.cloud.version>Finchley.SR1</spring.cloud.version>
  28. <spring.boot.admin.version>2.0.2</spring.boot.admin.version>
  29. <mysql.version>6.0.6</mysql.version>
  30. <mybatis.spring.boot.version>1.3.1</mybatis.spring.boot.version>
  31. <fastjson.version>1.2.44</fastjson.version>
  32. <alibaba.druid.version>1.1.6</alibaba.druid.version>
  33. <zipkin.version>2.11.5</zipkin.version>
  34. <pagehelper.starter.version>1.2.7</pagehelper.starter.version>
  35. <shiro.version>1.4.0</shiro.version>
  36. <swagger.version>2.7.0</swagger.version>
  37. <feign.form.version>3.0.3</feign.form.version>
  38. <commons.fileupload.version>1.3.3</commons.fileupload.version>
  39. <docker.repository>192.168.0.181:5000</docker.repository>
  40. <docker.registry.name>saas</docker.registry.name>
  41. </properties>
  42. <repositories>
  43. <repository>
  44. <id>spring-milestones</id>
  45. <name>Spring Milestones</name>
  46. <url>https://repo.spring.io/libs-milestone</url>
  47. </repository>
  48. <repository>
  49. <id>oss</id>
  50. <name>oss</name>
  51. <url>https://oss.sonatype.org/content/groups/public</url>
  52. </repository>
  53. <repository>
  54. <id>aliyun</id>
  55. <name>aliyun</name>
  56. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  57. </repository>
  58. </repositories>
  59. <distributionManagement>
  60. <repository>
  61. <id>platform-release</id>
  62. <name>platform-release</name>
  63. <url>http://10.10.100.21:8081/artifactory/libs-release-local</url>
  64. </repository>
  65. <snapshotRepository>
  66. <id>platform-snapshots</id>
  67. <name>platform-snapshots</name>
  68. <url>http://10.10.100.21:8081/artifactory/libs-snapshot-local</url>
  69. </snapshotRepository>
  70. </distributionManagement>
  71. <dependencyManagement>
  72. <dependencies>
  73. <dependency>
  74. <groupId>org.springframework.cloud</groupId>
  75. <artifactId>spring-cloud-dependencies</artifactId>
  76. <version>${spring.cloud.version}</version>
  77. <type>pom</type>
  78. <scope>import</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>de.codecentric</groupId>
  82. <artifactId>spring-boot-admin-dependencies</artifactId>
  83. <version>${spring.boot.admin.version}</version>
  84. <type>pom</type>
  85. <scope>import</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.mybatis.spring.boot</groupId>
  89. <artifactId>mybatis-spring-boot-starter</artifactId>
  90. <version>${mybatis.spring.boot.version}</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.alibaba</groupId>
  94. <artifactId>druid</artifactId>
  95. <version>${alibaba.druid.version}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>mysql</groupId>
  99. <artifactId>mysql-connector-java</artifactId>
  100. <version>${mysql.version}</version>
  101. </dependency>
  102. <!-- zipkin autoconfigure -->
  103. <dependency>
  104. <groupId>io.zipkin.zipkin2</groupId>
  105. <artifactId>parent</artifactId>
  106. <version>${zipkin.version}</version>
  107. <type>pom</type>
  108. <scope>import</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>io.zipkin.java</groupId>
  112. <artifactId>zipkin-autoconfigure-storage-mysql</artifactId>
  113. <version>${zipkin.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>io.zipkin.java</groupId>
  117. <artifactId>zipkin-autoconfigure-storage-elasticsearch</artifactId>
  118. <version>${zipkin.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>io.zipkin.java</groupId>
  122. <artifactId>zipkin-autoconfigure-collector-rabbitmq</artifactId>
  123. <version>${zipkin.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>io.zipkin.java</groupId>
  127. <artifactId>zipkin-autoconfigure-collector-kafka</artifactId>
  128. <version>${zipkin.version}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>io.zipkin.java</groupId>
  132. <artifactId>zipkin-autoconfigure-ui</artifactId>
  133. <version>${zipkin.version}</version>
  134. </dependency>
  135. <!-- pagehelper -->
  136. <dependency>
  137. <groupId>com.github.pagehelper</groupId>
  138. <artifactId>pagehelper-spring-boot-starter</artifactId>
  139. <version>${pagehelper.starter.version}</version>
  140. </dependency>
  141. <!-- shiro -->
  142. <dependency>
  143. <groupId>org.apache.shiro</groupId>
  144. <artifactId>shiro-core</artifactId>
  145. <version>${shiro.version}</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.apache.shiro</groupId>
  149. <artifactId>shiro-spring</artifactId>
  150. <version>${shiro.version}</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.apache.shiro</groupId>
  154. <artifactId>shiro-web</artifactId>
  155. <version>${shiro.version}</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.apache.shiro</groupId>
  159. <artifactId>shiro-ehcache</artifactId>
  160. <version>${shiro.version}</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.apache.shiro</groupId>
  164. <artifactId>shiro-spring-boot-starter</artifactId>
  165. <version>${shiro.version}</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>org.apache.shiro</groupId>
  169. <artifactId>shiro-spring-boot-web-starter</artifactId>
  170. <version>${shiro.version}</version>
  171. </dependency>
  172. <!-- swagger -->
  173. <dependency>
  174. <groupId>io.springfox</groupId>
  175. <artifactId>springfox-swagger2</artifactId>
  176. <version>${swagger.version}</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>io.springfox</groupId>
  180. <artifactId>springfox-swagger-ui</artifactId>
  181. <version>${swagger.version}</version>
  182. </dependency>
  183. <!-- platform artifacts -->
  184. <dependency>
  185. <groupId>com.usoftchina.saas</groupId>
  186. <artifactId>core</artifactId>
  187. <version>${project.release.version}</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>com.usoftchina.saas</groupId>
  191. <artifactId>file-dto</artifactId>
  192. <version>${project.release.version}</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>com.usoftchina.saas</groupId>
  196. <artifactId>file-api</artifactId>
  197. <version>${project.release.version}</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>com.usoftchina.saas</groupId>
  201. <artifactId>mail-dto</artifactId>
  202. <version>${project.release.version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>com.usoftchina.saas</groupId>
  206. <artifactId>mail-api</artifactId>
  207. <version>${project.release.version}</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>com.usoftchina.saas</groupId>
  211. <artifactId>account-dto</artifactId>
  212. <version>${project.release.version}</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>com.usoftchina.saas</groupId>
  216. <artifactId>account-api</artifactId>
  217. <version>${project.release.version}</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>com.usoftchina.saas</groupId>
  221. <artifactId>auth-dto</artifactId>
  222. <version>${project.release.version}</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>com.usoftchina.saas</groupId>
  226. <artifactId>auth-common</artifactId>
  227. <version>${project.release.version}</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>com.usoftchina.saas</groupId>
  231. <artifactId>auth-api</artifactId>
  232. <version>${project.release.version}</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>com.usoftchina.saas</groupId>
  236. <artifactId>auth-client</artifactId>
  237. <version>${project.release.version}</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>com.usoftchina.saas</groupId>
  241. <artifactId>common-dto</artifactId>
  242. <version>${project.release.version}</version>
  243. </dependency>
  244. <dependency>
  245. <groupId>com.usoftchina.saas</groupId>
  246. <artifactId>purchase-api</artifactId>
  247. <version>${project.release.version}</version>
  248. </dependency>
  249. <dependency>
  250. <groupId>com.usoftchina.saas</groupId>
  251. <artifactId>purchase-dto</artifactId>
  252. <version>${project.release.version}</version>
  253. </dependency>
  254. <!-- file upload -->
  255. <dependency>
  256. <groupId>io.github.openfeign.form</groupId>
  257. <artifactId>feign-form</artifactId>
  258. <version>${feign.form.version}</version>
  259. </dependency>
  260. <dependency>
  261. <groupId>io.github.openfeign.form</groupId>
  262. <artifactId>feign-form-spring</artifactId>
  263. <version>${feign.form.version}</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>commons-fileupload</groupId>
  267. <artifactId>commons-fileupload</artifactId>
  268. <version>${commons.fileupload.version}</version>
  269. </dependency>
  270. </dependencies>
  271. </dependencyManagement>
  272. <build>
  273. <pluginManagement>
  274. <plugins>
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-compiler-plugin</artifactId>
  278. <configuration>
  279. <source>${java.version}</source>
  280. <target>${java.version}</target>
  281. </configuration>
  282. </plugin>
  283. <plugin>
  284. <groupId>org.springframework.boot</groupId>
  285. <artifactId>spring-boot-maven-plugin</artifactId>
  286. </plugin>
  287. <!-- Docker maven plugin -->
  288. <plugin>
  289. <groupId>com.spotify</groupId>
  290. <artifactId>docker-maven-plugin</artifactId>
  291. <version>1.0.0</version>
  292. <configuration>
  293. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  294. <registryUrl>${docker.repository}</registryUrl>
  295. <pushImage>true</pushImage>
  296. <imageName>
  297. ${docker.repository}/${docker.registry.name}/${project.artifactId}:${project.version}
  298. </imageName>
  299. <imageTags>
  300. <imageTag>latest</imageTag>
  301. </imageTags>
  302. <resources>
  303. <resource>
  304. <targetPath>/</targetPath>
  305. <directory>${project.build.directory}</directory>
  306. <include>${project.build.finalName}.jar</include>
  307. </resource>
  308. </resources>
  309. </configuration>
  310. </plugin>
  311. <!-- Docker maven plugin -->
  312. </plugins>
  313. </pluginManagement>
  314. </build>
  315. <profiles>
  316. <profile>
  317. <!-- mvn deploy -P release -->
  318. <id>release</id>
  319. <properties>
  320. <project.release.version>1.0.0</project.release.version>
  321. </properties>
  322. </profile>
  323. <profile>
  324. <!-- mvn deploy -P docker -->
  325. <id>docker</id>
  326. <build>
  327. <pluginManagement>
  328. <plugins>
  329. <!-- Docker maven plugin -->
  330. <plugin>
  331. <groupId>com.spotify</groupId>
  332. <artifactId>docker-maven-plugin</artifactId>
  333. <version>1.0.0</version>
  334. <configuration>
  335. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  336. <registryUrl>${docker.repository}</registryUrl>
  337. <pushImage>true</pushImage>
  338. <forceTags>true</forceTags>
  339. <imageName>
  340. ${docker.repository}/${docker.registry.name}/${project.artifactId}:${project.version}
  341. </imageName>
  342. <imageTags>
  343. <imageTag>latest</imageTag>
  344. </imageTags>
  345. <resources>
  346. <resource>
  347. <targetPath>/</targetPath>
  348. <directory>${project.build.directory}</directory>
  349. <include>${project.build.finalName}.jar</include>
  350. </resource>
  351. </resources>
  352. </configuration>
  353. <executions>
  354. <execution>
  355. <id>build-image</id>
  356. <phase>package</phase>
  357. <goals>
  358. <goal>build</goal>
  359. </goals>
  360. </execution>
  361. </executions>
  362. </plugin>
  363. <!-- Docker maven plugin -->
  364. </plugins>
  365. </pluginManagement>
  366. </build>
  367. </profile>
  368. </profiles>
  369. </project>