pom.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. <groupId>com.zcxk.smartcity</groupId>
  7. <artifactId>smart-city-api</artifactId>
  8. <version>1.0</version>
  9. <packaging>jar</packaging>
  10. <name>smart-city-intf</name>
  11. <description>中城信科智慧城市统一数据接入平台</description>
  12. <parent>
  13. <groupId>org.springframework.boot</groupId>
  14. <artifactId>spring-boot-starter-parent</artifactId>
  15. <version>2.2.6.RELEASE</version>
  16. </parent>
  17. <properties>
  18. <maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  21. <java.version>1.8</java.version>
  22. </properties>
  23. <dependencies>
  24. <!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-rest</artifactId>
  25. </dependency> -->
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-test</artifactId>
  29. <scope>test</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>mysql</groupId>
  33. <artifactId>mysql-connector-java</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.projectlombok</groupId>
  37. <artifactId>lombok</artifactId>
  38. </dependency>
  39. <!-- 构建Restful API -->
  40. <dependency>
  41. <groupId>io.springfox</groupId>
  42. <artifactId>springfox-swagger2</artifactId>
  43. <version>2.7.0</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>io.springfox</groupId>
  47. <artifactId>springfox-swagger-ui</artifactId>
  48. <version>2.7.0</version>
  49. </dependency>
  50. <!-- 数据源连接池 -->
  51. <dependency>
  52. <groupId>com.alibaba</groupId>
  53. <artifactId>druid-spring-boot-starter</artifactId>
  54. <version>1.1.9</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.alibaba</groupId>
  58. <artifactId>fastjson</artifactId>
  59. <version>1.2.41</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.commons</groupId>
  63. <artifactId>commons-lang3</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.mybatis.spring.boot</groupId>
  67. <artifactId>mybatis-spring-boot-starter</artifactId>
  68. <version>1.3.2</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-starter-data-redis</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.fasterxml.jackson.core</groupId>
  76. <artifactId>jackson-core</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.fasterxml.jackson.core</groupId>
  80. <artifactId>jackson-databind</artifactId>
  81. </dependency>
  82. <!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId>
  83. </dependency> -->
  84. <dependency>
  85. <groupId>commons-beanutils</groupId>
  86. <artifactId>commons-beanutils</artifactId>
  87. <version>1.9.3</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework.kafka</groupId>
  91. <artifactId>spring-kafka</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.apache.httpcomponents</groupId>
  95. <artifactId>httpclient</artifactId>
  96. </dependency>
  97. <!-- alicloud jms -->
  98. <dependency>
  99. <groupId>com.aliyun.openservices</groupId>
  100. <artifactId>ons-client</artifactId>
  101. <version>1.8.0.Final</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-starter-amqp</artifactId>
  106. </dependency>
  107. <!-- SpringBoot MongoDB-->
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-data-mongodb</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.aliyun.mq</groupId>
  114. <artifactId>mq-http-sdk</artifactId>
  115. <version>1.0.2</version>
  116. <!--
  117. <exclusions>
  118. <exclusion>
  119. <groupId>org.apache.httpcomponents</groupId>
  120. <artifactId>httpcore</artifactId>
  121. </exclusion>
  122. <exclusion>
  123. <groupId>org.apache.httpcomponents</groupId>
  124. <artifactId>httpclient</artifactId>
  125. </exclusion>
  126. <exclusion>
  127. <groupId>org.apache.commons</groupId>
  128. <artifactId>commons-lang3</artifactId>
  129. </exclusion>
  130. <exclusion>
  131. <groupId>commons-logging</groupId>
  132. <artifactId>commons-logging</artifactId>
  133. </exclusion>
  134. </exclusions>
  135. -->
  136. </dependency>
  137. </dependencies>
  138. <build>
  139. <finalName>
  140. ${project.artifactId}-${project.version}-${maven.build.timestamp}
  141. </finalName>
  142. <plugins>
  143. <plugin>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-maven-plugin</artifactId>
  146. </plugin>
  147. <!-- 1、设置jar的入口类 -->
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-jar-plugin</artifactId>
  151. <configuration>
  152. <archive>
  153. <manifest>
  154. <addClasspath>true</addClasspath>
  155. <classpathPrefix>lib/</classpathPrefix>
  156. <mainClass>com.zcxk.smartcity.data.access.Application</mainClass>
  157. </manifest>
  158. </archive>
  159. </configuration>
  160. </plugin>
  161. <!--2、把附属的jar打到jar内部的lib目录中 -->
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-dependency-plugin</artifactId>
  165. <executions>
  166. <execution>
  167. <id>copy-dependencies</id>
  168. <phase>package</phase>
  169. <goals>
  170. <goal>copy-dependencies</goal>
  171. </goals>
  172. <configuration>
  173. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  174. </configuration>
  175. </execution>
  176. </executions>
  177. </plugin>
  178. <!-- 3、打包过程忽略Junit测试 -->
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-surefire-plugin</artifactId>
  182. <configuration>
  183. <skip>true</skip>
  184. </configuration>
  185. </plugin>
  186. </plugins>
  187. </build>
  188. </project>