pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  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. <parent>
  6. <artifactId>fm-business</artifactId>
  7. <groupId>com.persagy</groupId>
  8. <version>3.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>fm-sop</artifactId>
  12. <packaging>jar</packaging>
  13. <properties>
  14. <hbase.version>1.3.0</hbase.version>
  15. <platform.version>1.0.0</platform.version>
  16. </properties>
  17. <repositories>
  18. <repository>
  19. <id>persagy</id>
  20. <name>releases Repository</name>
  21. <url>http://47.93.132.139:8081/nexus/content/repositories/persagy/</url>
  22. <snapshots>
  23. <enabled>true</enabled>
  24. </snapshots>
  25. <releases>
  26. <enabled>true</enabled>
  27. </releases>
  28. </repository>
  29. <repository>
  30. <id>integrated</id>
  31. <name>releases Repository</name>
  32. <url>http://47.93.132.139:8081/nexus/content/repositories/integrated/</url>
  33. <snapshots>
  34. <enabled>true</enabled>
  35. </snapshots>
  36. <releases>
  37. <enabled>true</enabled>
  38. </releases>
  39. </repository>
  40. <repository>
  41. <id>Persagy</id>
  42. <name>Persagy</name>
  43. <url>http://47.93.132.139:8081/nexus/content/groups/public/</url>
  44. <releases>
  45. <enabled>true</enabled>
  46. </releases>
  47. <snapshots>
  48. <enabled>true</enabled>
  49. </snapshots>
  50. </repository>
  51. <repository>
  52. <id>alimaven</id>
  53. <name>aliyun maven</name>
  54. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  55. </repository>
  56. </repositories>
  57. <dependencies>
  58. <dependency>
  59. <groupId>org.projectlombok</groupId>
  60. <artifactId>lombok</artifactId>
  61. <optional>true</optional>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.persagy</groupId>
  65. <artifactId>fm-common</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.persagy</groupId>
  69. <artifactId>fm-server</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.persagy</groupId>
  73. <artifactId>integrated-config-client</artifactId>
  74. </dependency>
  75. <!-- <dependency>-->
  76. <!-- <groupId>org.springframework.boot</groupId>-->
  77. <!-- <artifactId>spring-boot-starter-test</artifactId>-->
  78. <!-- <scope>test</scope>-->
  79. <!-- </dependency>-->
  80. <dependency>
  81. <groupId>com.persagy</groupId>
  82. <artifactId>fm-mybatis</artifactId>
  83. <version>3.0.0</version>
  84. <exclusions>
  85. <exclusion>
  86. <groupId>com.baomidou</groupId>
  87. <artifactId>mybatis-plus-boot-starter</artifactId>
  88. </exclusion>
  89. </exclusions>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.velocity</groupId>
  93. <artifactId>velocity-engine-core</artifactId>
  94. <version>2.3</version>
  95. </dependency>
  96. <!-- swagger -->
  97. <dependency>
  98. <groupId>com.persagy</groupId>
  99. <artifactId>integrated-swagger2-spring-boot-starter</artifactId>
  100. <version>${platform.version}</version>
  101. </dependency>
  102. <!--执行 SQL 分析打印插件-->
  103. <dependency>
  104. <groupId>p6spy</groupId>
  105. <artifactId>p6spy</artifactId>
  106. <version>3.8.1</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>cn.hutool</groupId>
  110. <artifactId>hutool-all</artifactId>
  111. <version>5.5.9</version>
  112. </dependency>
  113. <!-- redis -->
  114. <dependency>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-starter-data-redis</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>redis.clients</groupId>
  120. <artifactId>jedis</artifactId>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.apache.hbase</groupId>
  124. <artifactId>hbase-server</artifactId>
  125. <version>${hbase.version}</version>
  126. <exclusions>
  127. <exclusion>
  128. <groupId>com.sun.jersey</groupId>
  129. <artifactId>jersey-server</artifactId>
  130. </exclusion>
  131. <exclusion>
  132. <groupId>com.sun.jersey</groupId>
  133. <artifactId>jersey-core</artifactId>
  134. </exclusion>
  135. <exclusion>
  136. <groupId>com.sun.jersey</groupId>
  137. <artifactId>jersey-json</artifactId>
  138. </exclusion>
  139. <!-- <exclusion>
  140. <groupId>com.google.guava</groupId>
  141. <artifactId>guava</artifactId>
  142. </exclusion>-->
  143. </exclusions>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.apache.hbase</groupId>
  147. <artifactId>hbase-client</artifactId>
  148. <version>${hbase.version}</version>
  149. <exclusions>
  150. <exclusion>
  151. <groupId>com.google.guava</groupId>
  152. <artifactId>guava</artifactId>
  153. </exclusion>
  154. </exclusions>
  155. </dependency>
  156. <dependency>
  157. <groupId>com.sagacloud</groupId>
  158. <artifactId>zillion-util</artifactId>
  159. <version>2.1.3</version>
  160. <!-- <exclusions>
  161. <exclusion>
  162. <groupId>org.apache.httpcomponents</groupId>
  163. <artifactId>httpclient</artifactId>
  164. </exclusion>
  165. <exclusion>
  166. <groupId>org.apache.httpcomponents</groupId>
  167. <artifactId>httpcore</artifactId>
  168. </exclusion>
  169. </exclusions>-->
  170. </dependency>
  171. <dependency>
  172. <groupId>com.sagacloud</groupId>
  173. <artifactId>json-lib-zillion</artifactId>
  174. <version>1.0</version>
  175. <type>jar</type>
  176. <!-- <exclusions>
  177. <exclusion>
  178. <groupId>com.google.guava</groupId>
  179. <artifactId>guava</artifactId>
  180. </exclusion>
  181. </exclusions>-->
  182. </dependency>
  183. <!-- 映入JSON -->
  184. <dependency>
  185. <groupId>com.alibaba</groupId>
  186. <artifactId>fastjson</artifactId>
  187. <version>1.2.47</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.apache.httpcomponents</groupId>
  191. <artifactId>httpclient</artifactId>
  192. </dependency>
  193. <dependency>
  194. <groupId>com.persagy</groupId>
  195. <artifactId>integrated-db-spring-boot-starter</artifactId>
  196. <version>1.0.0</version>
  197. <exclusions>
  198. <exclusion>
  199. <groupId>com.baomidou</groupId>
  200. <artifactId>mybatis-plus-boot-starter</artifactId>
  201. </exclusion>
  202. </exclusions>
  203. </dependency>
  204. <dependency>
  205. <groupId>com.baomidou</groupId>
  206. <artifactId>mybatis-plus-boot-starter</artifactId>
  207. <version>3.4.2</version>
  208. <optional>true</optional>
  209. </dependency>
  210. </dependencies>
  211. <build>
  212. <finalName>${project.artifactId}</finalName>
  213. <resources>
  214. <resource>
  215. <directory>src/main/java</directory>
  216. <includes>
  217. <include>**/*.xml</include>
  218. </includes>
  219. </resource>
  220. <resource>
  221. <directory>src/main/resources</directory>
  222. <includes>
  223. <include>**/*.xml</include>
  224. <include>**/*.txt</include>
  225. <include>**/*.yml</include>
  226. <include>**/*.proterties</include>
  227. <include>**/*.factories</include>
  228. <include>**/*.sql</include>
  229. <include>**/*.json</include>
  230. </includes>
  231. </resource>
  232. <resource>
  233. <directory>src/main/resources</directory>
  234. <filtering>true</filtering>
  235. <includes>
  236. <include>**/version.txt</include>
  237. </includes>
  238. </resource>
  239. <resource>
  240. <directory>src/main/resources</directory>
  241. <filtering>false</filtering>
  242. <excludes>
  243. <exclude>**/version.txt</exclude>
  244. </excludes>
  245. </resource>
  246. </resources>
  247. <plugins>
  248. <plugin>
  249. <groupId>org.apache.maven.plugins</groupId>
  250. <artifactId>maven-surefire-plugin</artifactId>
  251. <configuration>
  252. <skipTests>true</skipTests>
  253. </configuration>
  254. </plugin>
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-compiler-plugin</artifactId>
  258. <configuration>
  259. <source>${java.version}</source>
  260. <target>${java.version}</target>
  261. </configuration>
  262. </plugin>
  263. <plugin>
  264. <groupId>org.springframework.boot</groupId>
  265. <artifactId>spring-boot-maven-plugin</artifactId>
  266. <configuration>
  267. <mainClass>com.persagy.ServerApplication</mainClass>
  268. </configuration>
  269. </plugin>
  270. <plugin>
  271. <groupId>pl.project13.maven</groupId>
  272. <artifactId>git-commit-id-plugin</artifactId>
  273. <executions>
  274. <execution>
  275. <goals>
  276. <goal>revision</goal>
  277. </goals>
  278. </execution>
  279. </executions>
  280. <configuration>
  281. <verbose>true</verbose>
  282. <dateFormat>yyyyMMddHHmm</dateFormat>
  283. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  284. <generateGitPropertiesFilename>target/git.properties</generateGitPropertiesFilename>
  285. </configuration>
  286. </plugin>
  287. <plugin>
  288. <groupId>com.coderplus.maven.plugins</groupId>
  289. <artifactId>copy-rename-maven-plugin</artifactId>
  290. <version>1.0.1</version>
  291. <executions>
  292. <execution>
  293. <id>rename-file</id>
  294. <phase>compile</phase>
  295. <goals>
  296. <goal>rename</goal>
  297. </goals>
  298. <configuration>
  299. <sourceFile>${project.build.directory}/git.properties</sourceFile>
  300. <destinationFile>${project.build.directory}/version.txt</destinationFile>
  301. </configuration>
  302. </execution>
  303. </executions>
  304. </plugin>
  305. <plugin>
  306. <artifactId>maven-resources-plugin</artifactId>
  307. <executions>
  308. <execution>
  309. <id>copy-resources</id>
  310. <phase>package</phase>
  311. <goals>
  312. <goal>copy-resources</goal>
  313. </goals>
  314. <configuration>
  315. <resources>
  316. <resource>
  317. <directory>src/main/resources/</directory>
  318. <includes>
  319. <include>**/template/**.**</include>
  320. <include>**/*.yml</include>
  321. <include>**/*.properties</include>
  322. </includes>
  323. </resource>
  324. <resource>
  325. <directory>${project.build.directory}</directory>
  326. <includes>
  327. <include>**/version.txt</include>
  328. </includes>
  329. </resource>
  330. </resources>
  331. <outputDirectory>${project.build.directory}/config</outputDirectory>
  332. </configuration>
  333. </execution>
  334. <execution>
  335. <id>copy-version</id>
  336. <phase>package</phase>
  337. <goals>
  338. <goal>copy-resources</goal>
  339. </goals>
  340. <configuration>
  341. <resources>
  342. <resource>
  343. <directory>src/script</directory>
  344. </resource>
  345. </resources>
  346. <outputDirectory>${project.build.directory}</outputDirectory>
  347. </configuration>
  348. </execution>
  349. </executions>
  350. </plugin>
  351. <plugin>
  352. <groupId>org.apache.maven.plugins</groupId>
  353. <artifactId>maven-assembly-plugin</artifactId>
  354. <executions>
  355. <execution>
  356. <id>make-assembly</id>
  357. <phase>package</phase>
  358. <goals>
  359. <goal>single</goal>
  360. </goals>
  361. <configuration>
  362. <finalName>
  363. ${project.artifactId}_${git.commit.time}_git_${git.branch}_${git.commit.id.abbrev}
  364. </finalName>
  365. <appendAssemblyId>false</appendAssemblyId>
  366. <descriptors>
  367. <descriptor>src/script/zip.xml</descriptor>
  368. </descriptors>
  369. </configuration>
  370. </execution>
  371. </executions>
  372. </plugin>
  373. </plugins>
  374. </build>
  375. </project>