pom.xml 18 KB

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