pom.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.macro.mall</groupId>
  5. <artifactId>mall-admin</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <packaging>jar</packaging>
  8. <name>mall-admin</name>
  9. <description>mall-admin project for mall</description>
  10. <parent>
  11. <groupId>org.springframework.boot</groupId>
  12. <artifactId>spring-boot-starter-parent</artifactId>
  13. <version>1.5.14.RELEASE</version>
  14. <relativePath/> <!-- lookup parent from repository -->
  15. </parent>
  16. <properties>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <java.version>1.8</java.version>
  20. <skipTests>true</skipTests>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>com.macro.mall</groupId>
  25. <artifactId>mall-mbg</artifactId>
  26. <version>1.0-SNAPSHOT</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-web</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-security</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.mybatis.spring.boot</groupId>
  38. <artifactId>mybatis-spring-boot-starter</artifactId>
  39. <version>1.2.0</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-actuator</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-test</artifactId>
  48. <scope>test</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-aop</artifactId>
  53. </dependency>
  54. <!--MyBatis分页插件-->
  55. <dependency>
  56. <groupId>com.github.pagehelper</groupId>
  57. <artifactId>pagehelper-spring-boot-starter</artifactId>
  58. <version>1.2.3</version>
  59. </dependency>
  60. <!--Swagger-UI API文档生产工具-->
  61. <dependency>
  62. <groupId>io.springfox</groupId>
  63. <artifactId>springfox-swagger2</artifactId>
  64. <version>2.6.1</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>io.springfox</groupId>
  68. <artifactId>springfox-swagger-ui</artifactId>
  69. <version>2.6.1</version>
  70. </dependency>
  71. <!--JWT(Json Web Token)登录支持-->
  72. <dependency>
  73. <groupId>io.jsonwebtoken</groupId>
  74. <artifactId>jjwt</artifactId>
  75. <version>0.9.0</version>
  76. </dependency>
  77. <!-- 阿里云OSS -->
  78. <dependency>
  79. <groupId>com.aliyun.oss</groupId>
  80. <artifactId>aliyun-sdk-oss</artifactId>
  81. <version>2.5.0</version>
  82. </dependency>
  83. <!--集成logstash-->
  84. <dependency>
  85. <groupId>net.logstash.logback</groupId>
  86. <artifactId>logstash-logback-encoder</artifactId>
  87. <version>4.8</version>
  88. </dependency>
  89. <!--集成druid连接池-->
  90. <dependency>
  91. <groupId>com.alibaba</groupId>
  92. <artifactId>druid-spring-boot-starter</artifactId>
  93. <version>1.1.10</version>
  94. </dependency>
  95. <!--lombok依赖-->
  96. <dependency>
  97. <groupId>org.projectlombok</groupId>
  98. <artifactId>lombok</artifactId>
  99. <optional>true</optional>
  100. </dependency>
  101. </dependencies>
  102. <build>
  103. <plugins>
  104. <plugin>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-maven-plugin</artifactId>
  107. </plugin>
  108. <plugin>
  109. <groupId>com.spotify</groupId>
  110. <artifactId>docker-maven-plugin</artifactId>
  111. <version>1.1.0</version>
  112. <executions>
  113. <execution>
  114. <id>build-image</id>
  115. <phase>package</phase>
  116. <goals>
  117. <goal>build</goal>
  118. </goals>
  119. </execution>
  120. </executions>
  121. <configuration>
  122. <imageName>mall/${project.artifactId}:${project.version}</imageName>
  123. <dockerHost>http://192.168.1.71:2375</dockerHost>
  124. <baseImage>java:8</baseImage>
  125. <entryPoint>["java", "-jar", "-Dspring.profiles.active=prod","/${project.build.finalName}.jar"]</entryPoint>
  126. <resources>
  127. <resource>
  128. <targetPath>/</targetPath>
  129. <directory>${project.build.directory}</directory>
  130. <include>${project.build.finalName}.jar</include>
  131. </resource>
  132. </resources>
  133. </configuration>
  134. </plugin>
  135. </plugins>
  136. </build>
  137. </project>