pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. <parent>
  6. <artifactId>fs</artifactId>
  7. <groupId>com.fs</groupId>
  8. <version>1.1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <version>1.1.12</version>
  12. <artifactId>fs-company-app</artifactId>
  13. <properties>
  14. <weixin-java-cp.version>4.4.0</weixin-java-cp.version>
  15. <weixin-java-miniapp.version>4.4.0</weixin-java-miniapp.version>
  16. </properties>
  17. <description>
  18. APP入口
  19. </description>
  20. <dependencies>
  21. <!-- spring-boot-devtools -->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-devtools</artifactId>
  25. <optional>true</optional> <!-- 表示依赖不会传递 -->
  26. </dependency>
  27. <!-- swagger2-->
  28. <dependency>
  29. <groupId>io.springfox</groupId>
  30. <artifactId>springfox-swagger2</artifactId>
  31. </dependency>
  32. <!-- swagger2-UI-->
  33. <dependency>
  34. <groupId>io.springfox</groupId>
  35. <artifactId>springfox-swagger-ui</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.github.xiaoymin</groupId>
  39. <artifactId>swagger-bootstrap-ui</artifactId>
  40. <version>1.9.3</version>
  41. </dependency>
  42. <!-- Mysql驱动包 -->
  43. <dependency>
  44. <groupId>mysql</groupId>
  45. <artifactId>mysql-connector-java</artifactId>
  46. </dependency>
  47. <!-- SpringBoot Web容器 -->
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-web</artifactId>
  51. </dependency>
  52. <!-- SpringBoot 拦截器 -->
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-aop</artifactId>
  56. </dependency>
  57. <!-- 阿里数据库连接池 -->
  58. <dependency>
  59. <groupId>com.alibaba</groupId>
  60. <artifactId>druid-spring-boot-starter</artifactId>
  61. </dependency>
  62. <!-- 验证码 -->
  63. <dependency>
  64. <groupId>com.github.penggle</groupId>
  65. <artifactId>kaptcha</artifactId>
  66. <exclusions>
  67. <exclusion>
  68. <artifactId>javax.servlet-api</artifactId>
  69. <groupId>javax.servlet</groupId>
  70. </exclusion>
  71. </exclusions>
  72. </dependency>
  73. <!-- 系统模块-->
  74. <dependency>
  75. <groupId>com.fs</groupId>
  76. <artifactId>fs-service-system</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-security</artifactId>
  81. </dependency>
  82. </dependencies>
  83. <build>
  84. <plugins>
  85. <plugin>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-maven-plugin</artifactId>
  88. <version>2.1.1.RELEASE</version>
  89. <configuration>
  90. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  91. </configuration>
  92. <executions>
  93. <execution>
  94. <goals>
  95. <goal>repackage</goal>
  96. </goals>
  97. </execution>
  98. </executions>
  99. </plugin>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-war-plugin</artifactId>
  103. <version>3.1.0</version>
  104. <configuration>
  105. <failOnMissingWebXml>false</failOnMissingWebXml>
  106. <warName>${project.artifactId}</warName>
  107. </configuration>
  108. </plugin>
  109. <plugin>
  110. <groupId>com.spotify</groupId>
  111. <artifactId>docker-maven-plugin</artifactId>
  112. <version>1.0.0</version>
  113. <configuration>
  114. <imageName>${project.artifactId}:${project.version}</imageName>
  115. <baseImage>kdvolder/jdk8</baseImage>
  116. <maintainer>docker_maven docker_maven@email.com</maintainer>
  117. <workdir>/</workdir>
  118. <cmd>["java", "-version"]</cmd>
  119. <entryPoint>["java", "-jar", "${project.build.finalName}.jar"]</entryPoint>
  120. <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
  121. <resources>
  122. <resource>
  123. <targetPath>/</targetPath>
  124. <directory>${project.build.directory}</directory>
  125. <include>${project.build.finalName}.jar</include>
  126. </resource>
  127. </resources>
  128. <dockerHost>http://8.140.143.122:2375</dockerHost>
  129. </configuration>
  130. </plugin>
  131. </plugins>
  132. <finalName>${project.artifactId}</finalName>
  133. </build>
  134. </project>