暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  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>sgiipserver</artifactId>
  7. <groupId>com.shinsoft</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>log</artifactId>
  12. <version>1.0.0</version>
  13. <name>log</name>
  14. <description>Demo project for Spring Boot</description>
  15. <properties>
  16. <java.version>17</java.version>
  17. </properties>
  18. <dependencies>
  19. <!--spring-->
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-web</artifactId>
  23. <exclusions>
  24. <exclusion>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-logging</artifactId>
  27. </exclusion>
  28. <exclusion>
  29. <groupId>org.hibernate</groupId>
  30. <artifactId>hibernate-validator</artifactId>
  31. </exclusion>
  32. </exclusions>
  33. </dependency>
  34. <!--log4j2-->
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-log4j2</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.logging.log4j</groupId>
  41. <artifactId>log4j-api</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.logging.log4j</groupId>
  45. <artifactId>log4j-core</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.logging.log4j</groupId>
  49. <artifactId>log4j-jul</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.logging.log4j</groupId>
  53. <artifactId>log4j-slf4j-impl</artifactId>
  54. </dependency>
  55. <!--log4j2-->
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-test</artifactId>
  59. <scope>test</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.alibaba.cloud</groupId>
  63. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.alibaba.cloud</groupId>
  67. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.cloud</groupId>
  71. <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.cloud</groupId>
  75. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework.cloud</groupId>
  79. <artifactId>spring-cloud-starter-openfeign</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-starter-aop</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-starter-data-redis</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-starter-amqp</artifactId>
  92. </dependency>
  93. <!--spring-->
  94. <!--common-->
  95. <dependency>
  96. <groupId>org.apache.commons</groupId>
  97. <artifactId>commons-pool2</artifactId>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.apache.commons</groupId>
  101. <artifactId>commons-lang3</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>commons-io</groupId>
  105. <artifactId>commons-io</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>commons-fileupload</groupId>
  109. <artifactId>commons-fileupload</artifactId>
  110. </dependency>
  111. <dependency>
  112. <groupId>commons-dbutils</groupId>
  113. <artifactId>commons-dbutils</artifactId>
  114. </dependency>
  115. <!--common-->
  116. <!--数据库相关-->
  117. <dependency>
  118. <groupId>mysql</groupId>
  119. <artifactId>mysql-connector-java</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.oracle.database.jdbc</groupId>
  123. <artifactId>ojdbc8</artifactId>
  124. </dependency>
  125. <dependency>
  126. <groupId>com.oracle.database.nls</groupId>
  127. <artifactId>orai18n</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.dameng</groupId>
  131. <artifactId>DmJdbcDriver18</artifactId>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.alibaba</groupId>
  135. <artifactId>druid</artifactId>
  136. </dependency>
  137. <!--数据库相关-->
  138. <!--代码生成-->
  139. <dependency>
  140. <groupId>org.freemarker</groupId>
  141. <artifactId>freemarker</artifactId>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.baomidou</groupId>
  145. <artifactId>mybatis-plus-boot-starter</artifactId>
  146. </dependency>
  147. <dependency>
  148. <groupId>com.baomidou</groupId>
  149. <artifactId>mybatis-plus-generator</artifactId>
  150. </dependency>
  151. <!-- <dependency>-->
  152. <!-- <groupId>com.baomidou</groupId>-->
  153. <!-- <artifactId>mybatis-plus-extension</artifactId>-->
  154. <!-- </dependency>-->
  155. <dependency>
  156. <groupId>org.projectlombok</groupId>
  157. <artifactId>lombok</artifactId>
  158. </dependency>
  159. <!--代码生成-->
  160. <!--JSON相关-->
  161. <dependency>
  162. <groupId>com.alibaba</groupId>
  163. <artifactId>fastjson</artifactId>
  164. </dependency>
  165. <!-- <dependency>-->
  166. <!-- <groupId>com.fasterxml.jackson.core</groupId>-->
  167. <!-- <artifactId>jackson-databind</artifactId>-->
  168. <!-- </dependency>-->
  169. <!-- <dependency>-->
  170. <!-- <groupId>com.fasterxml.jackson.core</groupId>-->
  171. <!-- <artifactId>jackson-core</artifactId>-->
  172. <!-- </dependency>-->
  173. <!-- <dependency>-->
  174. <!-- <groupId>com.fasterxml.jackson.core</groupId>-->
  175. <!-- <artifactId>jackson-annotations</artifactId>-->
  176. <!-- </dependency>-->
  177. <!--JSON相关-->
  178. <!--加密-->
  179. <dependency>
  180. <groupId>com.auth0</groupId>
  181. <artifactId>java-jwt</artifactId>
  182. </dependency>
  183. <!--加密-->
  184. <!--二维码-->
  185. <dependency>
  186. <groupId>com.google.zxing</groupId>
  187. <artifactId>core</artifactId>
  188. </dependency>
  189. <dependency>
  190. <groupId>com.google.zxing</groupId>
  191. <artifactId>javase</artifactId>
  192. </dependency>
  193. <!--二维码-->
  194. <!--itext pdf-->
  195. <dependency>
  196. <groupId>com.itextpdf</groupId>
  197. <artifactId>itextpdf</artifactId>
  198. <version>5.2.1</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>com.itextpdf</groupId>
  202. <artifactId>itext-asian</artifactId>
  203. <version>5.2.0</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>org.projectlombok</groupId>
  207. <artifactId>lombok</artifactId>
  208. <version>1.16.10</version>
  209. <scope>provided</scope>
  210. </dependency>
  211. <!--itext pdf-->
  212. <!--在线预览office-->
  213. <dependency>
  214. <groupId>com.artofsolving</groupId>
  215. <artifactId>jodconverter</artifactId>
  216. <version>2.2.1</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>com.github.livesense</groupId>
  220. <artifactId>jodconverter-core</artifactId>
  221. <version>1.0.5</version>
  222. </dependency>
  223. <!--在线预览office-->
  224. <dependency>
  225. <groupId>io.github.cdancy</groupId>
  226. <artifactId>jenkins-rest</artifactId>
  227. <version>1.0.0</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>io.minio</groupId>
  231. <artifactId>minio</artifactId>
  232. </dependency>
  233. <!-- 公共方法和接口-->
  234. <dependency>
  235. <groupId>com.shinsoft</groupId>
  236. <artifactId>tools</artifactId>
  237. <version>1.0.1</version>
  238. <scope>system</scope>
  239. <systemPath>${project.basedir}/../lib/tools-1.0.1.jar</systemPath>
  240. </dependency>
  241. <!-- 公共方法和接口-->
  242. </dependencies>
  243. <profiles>
  244. <profile> <!-- 本地开发环境 -->
  245. <id>localhost</id>
  246. <properties>
  247. <profiles.active>localhost</profiles.active>
  248. </properties>
  249. <activation>
  250. <activeByDefault>true</activeByDefault>
  251. </activation>
  252. </profile>
  253. <profile> <!-- 服务器开发环境 -->
  254. <id>develop</id>
  255. <properties>
  256. <profiles.active>develop</profiles.active>
  257. </properties>
  258. </profile>
  259. <profile> <!-- 服务器开发环境 -->
  260. <id>develop1</id>
  261. <properties>
  262. <profiles.active>develop1</profiles.active>
  263. </properties>
  264. </profile>
  265. <profile> <!-- 测试环境 -->
  266. <id>test</id>
  267. <properties>
  268. <profiles.active>test</profiles.active>
  269. </properties>
  270. </profile>
  271. <profile> <!-- 生产环境 -->
  272. <id>production</id>
  273. <properties>
  274. <profiles.active>production</profiles.active>
  275. </properties>
  276. </profile>
  277. <profile>
  278. <id>litai</id>
  279. <properties>
  280. <profiles.active>litai</profiles.active>
  281. </properties>
  282. </profile>
  283. </profiles>
  284. <build>
  285. <finalName>${project.artifactId}</finalName>
  286. <!-- <finalName>${project.artifactId}-${profiles.active}</finalName>-->
  287. <resources>
  288. <resource>
  289. <directory>src/main/resources</directory>
  290. <excludes>
  291. <exclude>localhost/**</exclude>
  292. <exclude>develop/**</exclude>
  293. <exclude>develop1/**</exclude>
  294. <exclude>test/**</exclude>
  295. <exclude>production/**</exclude>
  296. <exclude>productionA/**</exclude>
  297. <exclude>productionB/**</exclude>
  298. <exclude>classes/**</exclude>
  299. <exclude>lib/**</exclude>
  300. </excludes>
  301. </resource>
  302. <resource>
  303. <directory>src/main/resources/${profiles.active}</directory>
  304. </resource>
  305. <resource>
  306. <directory>src/main/resources</directory>
  307. <includes>
  308. <include>**/*.yml</include>
  309. <include>**/*.properties</include>
  310. <include>**/*.xml</include>
  311. </includes>
  312. <filtering>false</filtering>
  313. </resource>
  314. <resource>
  315. <directory>src/main/java</directory>
  316. <targetPath>${project.build.directory}/classes/mapper</targetPath>
  317. <includes>
  318. <include>**/*.xml</include>
  319. </includes>
  320. <filtering>false</filtering>
  321. </resource>
  322. </resources>
  323. <plugins>
  324. <plugin>
  325. <groupId>org.apache.maven.plugins</groupId>
  326. <artifactId>maven-jar-plugin</artifactId>
  327. <configuration>
  328. <archive>
  329. <manifest>
  330. <addClasspath>true</addClasspath>
  331. <classpathPrefix>lib/</classpathPrefix>
  332. <mainClass>com.shinsoft.log.LogApplication</mainClass>
  333. </manifest>
  334. <manifestEntries>
  335. <Class-Path>lib/tools-1.0.1.jar</Class-Path>
  336. </manifestEntries>
  337. </archive>
  338. <outputDirectory>
  339. <!-- ${output.path}/${project.artifactId}-->
  340. ${project.build.directory}
  341. <!-- /home/${project.artifactId}-->
  342. </outputDirectory>
  343. </configuration>
  344. </plugin>
  345. <plugin>
  346. <groupId>org.apache.maven.plugins</groupId>
  347. <artifactId>maven-dependency-plugin</artifactId>
  348. <executions>
  349. <execution>
  350. <id>copy</id>
  351. <phase>compile</phase>
  352. <goals>
  353. <goal>copy-dependencies</goal>
  354. </goals>
  355. <configuration>
  356. <outputDirectory>
  357. <!-- ${output.path}/${project.artifactId}/lib-->
  358. ${project.build.directory}/lib
  359. <!-- /home/${project.artifactId}/lib-->
  360. </outputDirectory>
  361. </configuration>
  362. </execution>
  363. <execution>
  364. <id>sys</id>
  365. <phase>compile</phase>
  366. <goals>
  367. <goal>copy-dependencies</goal>
  368. </goals>
  369. <configuration>
  370. <includeScope>system</includeScope>
  371. </configuration>
  372. </execution>
  373. </executions>
  374. </plugin>
  375. <plugin>
  376. <groupId>org.apache.maven.plugins</groupId>
  377. <artifactId>maven-resources-plugin</artifactId>
  378. <executions>
  379. <execution>
  380. <id>copy-resource</id>
  381. <phase>package</phase>
  382. <goals>
  383. <goal>copy-resources</goal>
  384. </goals>
  385. <configuration>
  386. <outputDirectory>
  387. <!-- ${output.path}/${project.artifactId}-->
  388. ${project.build.directory}
  389. <!-- /home/${project.artifactId}-->
  390. </outputDirectory>
  391. <resources>
  392. <resource>
  393. <directory>${project.basedir}/src/main/resources/${profiles.active}</directory>
  394. <includes>
  395. <include>Dockerfile</include>
  396. <include>bootstrap.properties</include>
  397. <include>*.sh</include>
  398. </includes>
  399. </resource>
  400. </resources>
  401. </configuration>
  402. </execution>
  403. </executions>
  404. </plugin>
  405. </plugins>
  406. </build>
  407. </project>