pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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.diagbot</groupId>
  7. <artifactId>common</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <name>common</name>
  11. <description>Common for Spring Boot</description>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <encoding>UTF-8</encoding>
  15. <java.version>1.8</java.version>
  16. <maven.compiler.source>1.8</maven.compiler.source>
  17. <maven.compiler.target>1.8</maven.compiler.target>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.apache.commons</groupId>
  22. <artifactId>commons-lang3</artifactId>
  23. <version>3.8</version>
  24. <!--<scope>provided</scope>-->
  25. </dependency>
  26. <dependency>
  27. <groupId>org.projectlombok</groupId>
  28. <artifactId>lombok</artifactId>
  29. <version>1.18.2</version>
  30. <scope>provided</scope>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework</groupId>
  34. <artifactId>spring-webmvc</artifactId>
  35. <version>5.0.9.RELEASE</version>
  36. <scope>provided</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>javax.servlet</groupId>
  40. <artifactId>javax.servlet-api</artifactId>
  41. <version>4.0.1</version>
  42. <scope>provided</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.security</groupId>
  46. <artifactId>spring-security-core</artifactId>
  47. <version>5.0.8.RELEASE</version>
  48. <scope>provided</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.security.oauth</groupId>
  52. <artifactId>spring-security-oauth2</artifactId>
  53. <version>2.3.3.RELEASE</version>
  54. <scope>provided</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.slf4j</groupId>
  58. <artifactId>slf4j-api</artifactId>
  59. <version>1.7.25</version>
  60. <scope>provided</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.google.code.gson</groupId>
  64. <artifactId>gson</artifactId>
  65. <version>2.8.5</version>
  66. <scope>provided</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.alibaba</groupId>
  70. <artifactId>fastjson</artifactId>
  71. <version>1.2.54</version>
  72. <scope>compile</scope>
  73. </dependency>
  74. <!--POI-->
  75. <dependency>
  76. <groupId>org.apache.poi</groupId>
  77. <artifactId>poi</artifactId>
  78. <version>4.0.0</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.poi</groupId>
  82. <artifactId>poi-ooxml</artifactId>
  83. <version>4.0.0</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.auth0</groupId>
  87. <artifactId>java-jwt</artifactId>
  88. <version>3.4.1</version>
  89. <scope>compile</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.belerweb</groupId>
  93. <artifactId>pinyin4j</artifactId>
  94. <version>2.5.1</version>
  95. <scope>compile</scope>
  96. </dependency>
  97. <!--<dependency>-->
  98. <!--<groupId>com.fasterxml.jackson.core</groupId>-->
  99. <!--<artifactId>jackson-core</artifactId>-->
  100. <!--<version>2.9.6</version>-->
  101. <!--</dependency>-->
  102. <!--<dependency>-->
  103. <!--<groupId>com.fasterxml.jackson.core</groupId>-->
  104. <!--<artifactId>jackson-databind</artifactId>-->
  105. <!--<version>2.9.6</version>-->
  106. <!--</dependency>-->
  107. </dependencies>
  108. <build>
  109. <plugins>
  110. <plugin>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-maven-plugin</artifactId>
  113. </plugin>
  114. <!-- 添加docker-maven插件 -->
  115. <plugin>
  116. <groupId>com.spotify</groupId>
  117. <artifactId>docker-maven-plugin</artifactId>
  118. <version>1.1.1</version>
  119. <configuration>
  120. <imageName>192.168.2.236:5000/diagbotcloud/${project.artifactId}:${project.version}</imageName>
  121. <pushImage>true</pushImage>
  122. <!--<forceTags>true</forceTags>-->
  123. <!--镜像的FROM,使用java官方镜像-->
  124. <baseImage>frolvlad/alpine-oraclejdk8:slim</baseImage>
  125. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${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. <serverId>docker-registry</serverId>
  134. <registryUrl>http://192.168.2.236:5000/repository/diagbotcloud/</registryUrl>
  135. </configuration>
  136. </plugin>
  137. </plugins>
  138. </build>
  139. </project>