Açıklama Yok
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.

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