pom.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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.gct.common</groupId>
  7. <artifactId>microarch_bg_common</artifactId>
  8. <version>0.0.3-SNAPSHOT</version>
  9. <name>microarch_bg_common</name>
  10. <description>公共模块</description>
  11. <packaging>pom</packaging>
  12. <modules>
  13. <module>common-core</module>
  14. <module>common-security</module>
  15. <module>common-util</module>
  16. </modules>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <spring-cloud.version>Hoxton.SR3</spring-cloud.version>
  20. <spring-cloud-alibaba.version>2.2.1.RELEASE</spring-cloud-alibaba.version>
  21. <mybatis-plus.version>3.3.1</mybatis-plus.version>
  22. <mybatis-typehandlers.version>1.0.2</mybatis-typehandlers.version>
  23. <mybatis-plus-generator.version>3.3.1.tmp</mybatis-plus-generator.version>
  24. <velocity-engine.version>2.2</velocity-engine.version>
  25. <swagger.version>1.9.1.RELEASE</swagger.version>
  26. <!-- <lombok.version>1.18.16</lombok.version>-->
  27. <lombok.version>1.16.18</lombok.version>
  28. <jwt.version>0.9.1</jwt.version>
  29. <web.version>2.3.0.RELEASE</web.version>
  30. <security.version>2.3.0.RELEASE</security.version>
  31. <redis.version>2.3.0.RELEASE</redis.version>
  32. <jedis.version>3.1.0</jedis.version>
  33. <fastjson.version>1.2.58</fastjson.version>
  34. <lombok-maven-plugin.version>1.16.6.1</lombok-maven-plugin.version>
  35. <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
  36. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  37. </properties>
  38. <dependencyManagement>
  39. <dependencies>
  40. <!-- Spring Cloud Hoxton -->
  41. <dependency>
  42. <groupId>org.springframework.cloud</groupId>
  43. <artifactId>spring-cloud-dependencies</artifactId>
  44. <version>${spring-cloud.version}</version>
  45. <type>pom</type>
  46. <scope>import</scope>
  47. </dependency>
  48. <!-- Spring Cloud Alibaba -->
  49. <dependency>
  50. <groupId>com.alibaba.cloud</groupId>
  51. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  52. <version>${spring-cloud-alibaba.version}</version>
  53. <type>pom</type>
  54. <scope>import</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.alibaba</groupId>
  58. <artifactId>fastjson</artifactId>
  59. <version>${fastjson.version}</version>
  60. </dependency>
  61. <!--lombok-->
  62. <dependency>
  63. <groupId>org.projectlombok</groupId>
  64. <artifactId>lombok</artifactId>
  65. <version>${lombok.version}</version>
  66. </dependency>
  67. <!--mybatis-plus-->
  68. <dependency>
  69. <groupId>com.baomidou</groupId>
  70. <artifactId>mybatis-plus-boot-starter</artifactId>
  71. <version>${mybatis-plus.version}</version>
  72. </dependency>
  73. <!--这个必须引用 因为使用mybatis-plus LocalDataTime问题-->
  74. <dependency>
  75. <groupId>org.mybatis</groupId>
  76. <artifactId>mybatis-typehandlers-jsr310</artifactId>
  77. <version>${mybatis-typehandlers.version}</version>
  78. </dependency>
  79. <!--代码生成模式插件 3.0.3以后需要手动设置依赖-->
  80. <dependency>
  81. <groupId>com.baomidou</groupId>
  82. <artifactId>mybatis-plus-generator</artifactId>
  83. <version>${mybatis-plus-generator.version}</version>
  84. </dependency>
  85. <!--代码生成模板-->
  86. <dependency>
  87. <groupId>org.apache.velocity</groupId>
  88. <artifactId>velocity-engine-core</artifactId>
  89. <version>${velocity-engine.version}</version>
  90. </dependency>
  91. <!--swagger-->
  92. <dependency>
  93. <groupId>com.spring4all</groupId>
  94. <artifactId>swagger-spring-boot-starter</artifactId>
  95. <version>${swagger.version}</version>
  96. </dependency>
  97. <!-- spring security -->
  98. <dependency>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-starter-security</artifactId>
  101. <version>${security.version}</version>
  102. </dependency>
  103. <!-- jwt -->
  104. <dependency>
  105. <groupId>io.jsonwebtoken</groupId>
  106. <artifactId>jjwt</artifactId>
  107. <version>${jwt.version}</version>
  108. </dependency>
  109. <!--web-->
  110. <dependency>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-starter-web</artifactId>
  113. <version>${web.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-starter-data-redis</artifactId>
  118. <version>${redis.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>redis.clients</groupId>
  122. <artifactId>jedis</artifactId>
  123. <version>${jedis.version}</version>
  124. </dependency>
  125. </dependencies>
  126. </dependencyManagement>
  127. <distributionManagement>
  128. <repository>
  129. <id>releases</id>
  130. <name>Nexus Release Repository</name>
  131. <url>http://114.115.206.163:8081/repository/maven-releases/</url>
  132. </repository>
  133. <snapshotRepository>
  134. <id>snapshots</id>
  135. <name>Nexus Snapshot Repository</name>
  136. <url>http://114.115.206.163:8081/repository/maven-snapshots/</url>
  137. </snapshotRepository>
  138. </distributionManagement>
  139. <build>
  140. <plugins>
  141. <plugin>
  142. <groupId>org.apache.maven.plugins</groupId>
  143. <artifactId>maven-compiler-plugin</artifactId>
  144. <!--<configuration>
  145. <source>8</source>
  146. <target>8</target>
  147. </configuration>-->
  148. <configuration>
  149. <!-- 设置是否执行注释处理。 仅适用于JDK1.6如果没有设置,编译和注释处理都同时执行。
  150. 允许值为:
  151. none - no annotation processing is performed.
  152. only - only annotation processing is done, no compilation.
  153. 设置为only complie 或者build一下就可以运行annotation processor了
  154. 平常走默认值即可-->
  155. <!-- <proc>only</proc>-->
  156. <source>8</source>
  157. <target>8</target>
  158. <encoding>utf-8</encoding>
  159. </configuration>
  160. </plugin>
  161. <!--配置生成Javadoc包-->
  162. <!--<plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-javadoc-plugin</artifactId>
  165. <executions>
  166. <execution>
  167. <id>attach-javadocs</id>
  168. <goals>
  169. <goal>jar</goal>
  170. </goals>
  171. </execution>
  172. </executions>
  173. </plugin>-->
  174. <!--配置生成源码包-->
  175. <plugin>
  176. <groupId>org.apache.maven.plugins</groupId>
  177. <artifactId>maven-source-plugin</artifactId>
  178. <executions>
  179. <execution>
  180. <id>attach-sources</id>
  181. <goals>
  182. <goal>jar</goal>
  183. </goals>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. <!-- 打包过程忽略Junit测试 -->
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-surefire-plugin</artifactId>
  191. <version>${maven-surefire-plugin.version}</version>
  192. <configuration>
  193. <skipTests>true</skipTests>
  194. </configuration>
  195. </plugin>
  196. <plugin>
  197. <groupId>org.projectlombok</groupId>
  198. <artifactId>lombok-maven-plugin</artifactId>
  199. <version>${lombok-maven-plugin.version}</version>
  200. </plugin>
  201. </plugins>
  202. <pluginManagement>
  203. <plugins>
  204. <plugin>
  205. <artifactId>maven-compiler-plugin</artifactId>
  206. <version>3.8.1</version>
  207. </plugin>
  208. <plugin>
  209. <artifactId>maven-source-plugin</artifactId>
  210. <version>3.2.1</version>
  211. </plugin>
  212. <!--<plugin>
  213. <artifactId>maven-javadoc-plugin</artifactId>
  214. <version>3.2.0</version>
  215. </plugin>-->
  216. </plugins>
  217. </pluginManagement>
  218. </build>
  219. </project>