pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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.1.0.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. <dependency>
  108. <groupId>com.aliyun.mq</groupId>
  109. <artifactId>mq-http-sdk</artifactId>
  110. <version>1.0.2</version>
  111. <!--
  112. <exclusions>
  113. <exclusion>
  114. <groupId>org.apache.httpcomponents</groupId>
  115. <artifactId>httpcore</artifactId>
  116. </exclusion>
  117. <exclusion>
  118. <groupId>org.apache.httpcomponents</groupId>
  119. <artifactId>httpclient</artifactId>
  120. </exclusion>
  121. <exclusion>
  122. <groupId>org.apache.commons</groupId>
  123. <artifactId>commons-lang3</artifactId>
  124. </exclusion>
  125. <exclusion>
  126. <groupId>commons-logging</groupId>
  127. <artifactId>commons-logging</artifactId>
  128. </exclusion>
  129. </exclusions>
  130. -->
  131. </dependency>
  132. </dependencies>
  133. <build>
  134. <finalName>
  135. ${project.artifactId}-${project.version}_${maven.build.timestamp}
  136. </finalName>
  137. <plugins>
  138. <plugin>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-maven-plugin</artifactId>
  141. </plugin>
  142. <!-- 1、设置jar的入口类 -->
  143. <plugin>
  144. <groupId>org.apache.maven.plugins</groupId>
  145. <artifactId>maven-jar-plugin</artifactId>
  146. <configuration>
  147. <archive>
  148. <manifest>
  149. <addClasspath>true</addClasspath>
  150. <classpathPrefix>lib/</classpathPrefix>
  151. <mainClass>com.zcxk.smartcity.data.access.Application</mainClass>
  152. </manifest>
  153. </archive>
  154. </configuration>
  155. </plugin>
  156. <!--2、把附属的jar打到jar内部的lib目录中 -->
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-dependency-plugin</artifactId>
  160. <executions>
  161. <execution>
  162. <id>copy-dependencies</id>
  163. <phase>package</phase>
  164. <goals>
  165. <goal>copy-dependencies</goal>
  166. </goals>
  167. <configuration>
  168. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  169. </configuration>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. <!-- 3、打包过程忽略Junit测试 -->
  174. <plugin>
  175. <groupId>org.apache.maven.plugins</groupId>
  176. <artifactId>maven-surefire-plugin</artifactId>
  177. <configuration>
  178. <skip>true</skip>
  179. </configuration>
  180. </plugin>
  181. </plugins>
  182. </build>
  183. </project>