pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. <artifactId>aak-civil</artifactId>
  7. <packaging>jar</packaging>
  8. <name>aak-civil</name>
  9. <description>安爱康民政端管理后台</description>
  10. <parent>
  11. <groupId>com.anlovek</groupId>
  12. <artifactId>anlovek</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. </parent>
  15. <properties>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  18. <java.version>1.8</java.version>
  19. <spring-cloud.version>Finchley.M8</spring-cloud.version>
  20. <docker.image.prefix>registry.cn-qingdao.aliyuncs.com/bdly</docker.image.prefix>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>com.anlove</groupId>
  25. <artifactId>aak-common</artifactId>
  26. <version>0.0.1-SNAPSHOT</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-test</artifactId>
  35. <scope>test</scope>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.mybatis.spring.boot</groupId>
  39. <artifactId>mybatis-spring-boot-starter</artifactId>
  40. <version>1.3.1</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-configuration-processor</artifactId>
  45. <optional>true</optional>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter</artifactId>
  50. <version>2.0.0.RELEASE</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-test</artifactId>
  55. <version>2.0.0.RELEASE</version>
  56. <scope>test</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.springframework.cloud</groupId>
  60. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.cloud</groupId>
  64. <artifactId>spring-cloud-starter-openfeign</artifactId>
  65. </dependency>
  66. </dependencies>
  67. <build>
  68. <plugins>
  69. <plugin>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-maven-plugin</artifactId>
  72. </plugin>
  73. <!--# -Dmaven.test.skip=true-->
  74. <plugin>
  75. <groupId>org.apache.maven.plugin</groupId>
  76. <artifactId>maven-compiler-plugin</artifactId>
  77. <version>2.1</version>
  78. <configuration>
  79. <skip>true</skip>
  80. </configuration>
  81. </plugin>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-surefire-plugin</artifactId>
  85. <version>2.5</version>
  86. <configuration>
  87. <skip>true</skip>
  88. </configuration>
  89. </plugin>
  90. <!--# -DskipTests-->
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-surefire-plugin</artifactId>
  94. <version>2.5</version>
  95. <configuration>
  96. <skipTests>true</skipTests>
  97. </configuration>
  98. </plugin>
  99. <!-- docker的maven插件,官网:https://github.com/spotify/docker-maven-plugin -->
  100. <plugin>
  101. <groupId>com.spotify</groupId>
  102. <artifactId>docker-maven-plugin</artifactId>
  103. <version>0.4.12</version>
  104. <executions>
  105. <execution>
  106. <id>build-image</id>
  107. <phase>package</phase>
  108. <goals>
  109. <goal>build</goal>
  110. </goals>
  111. </execution>
  112. </executions>
  113. <configuration>
  114. <!-- 注意imageName一定要是符合正则[a-z0-9-_.]的,否则构建不会成功 -->
  115. <!-- 详见:https://github.com/spotify/docker-maven-plugin Invalid repository name ... only [a-z0-9-_.] are allowed-->
  116. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  117. <imageTags>
  118. <imageTag>${project.version}</imageTag>
  119. <imageTag>latest</imageTag>
  120. </imageTags>
  121. <forceTags>true</forceTags>
  122. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  123. <entryPoint>["java", "-jar", "/${project.build.finalName}.jar","--spring.profiles.active=docker"]</entryPoint>
  124. <!-- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory> -->
  125. <resources>
  126. <resource>
  127. <targetPath>/</targetPath>
  128. <directory>${project.build.directory}</directory>
  129. <include>${project.build.finalName}.jar</include>
  130. </resource>
  131. </resources>
  132. <!-- <pushImage>true</pushImage>
  133. <serverId>aliyun-docker-hub</serverId>
  134. <registryUrl>registry.cn-hangzhou.aliyuncs.com</registryUrl> -->
  135. </configuration>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.mybatis.generator</groupId>
  139. <artifactId>mybatis-generator-maven-plugin</artifactId>
  140. <version>1.3.2</version>
  141. <executions>
  142. <execution>
  143. <id>Generate MyBatis Files</id>
  144. <goals>
  145. <goal>generate</goal>
  146. </goals>
  147. <phase>generate</phase>
  148. <configuration>
  149. <verbose>true</verbose>
  150. <overwrite>true</overwrite>
  151. </configuration>
  152. </execution>
  153. </executions>
  154. <dependencies>
  155. <dependency>
  156. <groupId>mysql</groupId>
  157. <artifactId>mysql-connector-java</artifactId>
  158. <version>5.1.38</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.mybatis.generator</groupId>
  162. <artifactId>mybatis-generator-core</artifactId>
  163. <version>1.3.5</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.mybatis</groupId>
  167. <artifactId>mybatis</artifactId>
  168. <version>3.4.2</version>
  169. </dependency>
  170. </dependencies>
  171. </plugin>
  172. </plugins>
  173. </build>
  174. </project>