pom.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. <registryUrl>http://192.168.2.236:5000/repository/diagbotcloud/</registryUrl>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.apache.commons</groupId>
  23. <artifactId>commons-lang3</artifactId>
  24. <version>3.9</version>
  25. <!--<scope>provided</scope>-->
  26. </dependency>
  27. <dependency>
  28. <groupId>org.projectlombok</groupId>
  29. <artifactId>lombok</artifactId>
  30. <version>1.18.10</version>
  31. <scope>provided</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework</groupId>
  35. <artifactId>spring-webmvc</artifactId>
  36. <version>5.1.9.RELEASE</version>
  37. <scope>provided</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>javax.servlet</groupId>
  41. <artifactId>javax.servlet-api</artifactId>
  42. <version>4.0.1</version>
  43. <scope>provided</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.security</groupId>
  47. <artifactId>spring-security-core</artifactId>
  48. <version>5.1.6.RELEASE</version>
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.security.oauth</groupId>
  53. <artifactId>spring-security-oauth2</artifactId>
  54. <version>2.3.6.RELEASE</version>
  55. <scope>provided</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.slf4j</groupId>
  59. <artifactId>slf4j-api</artifactId>
  60. <version>1.7.28</version>
  61. <scope>provided</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.google.code.gson</groupId>
  65. <artifactId>gson</artifactId>
  66. <version>2.8.5</version>
  67. <scope>provided</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.alibaba</groupId>
  71. <artifactId>fastjson</artifactId>
  72. <version>1.2.61</version>
  73. <scope>compile</scope>
  74. </dependency>
  75. <!--POI-->
  76. <dependency>
  77. <groupId>org.apache.poi</groupId>
  78. <artifactId>poi</artifactId>
  79. <version>4.1.0</version>
  80. <scope>provided</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.poi</groupId>
  84. <artifactId>poi-ooxml</artifactId>
  85. <version>4.1.0</version>
  86. <scope>provided</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.auth0</groupId>
  90. <artifactId>java-jwt</artifactId>
  91. <version>3.4.1</version>
  92. <scope>compile</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.belerweb</groupId>
  96. <artifactId>pinyin4j</artifactId>
  97. <version>2.5.1</version>
  98. <scope>compile</scope>
  99. </dependency>
  100. <!--<dependency>-->
  101. <!--<groupId>com.fasterxml.jackson.core</groupId>-->
  102. <!--<artifactId>jackson-core</artifactId>-->
  103. <!--<version>2.9.6</version>-->
  104. <!--</dependency>-->
  105. <!--<dependency>-->
  106. <!--<groupId>com.fasterxml.jackson.core</groupId>-->
  107. <!--<artifactId>jackson-databind</artifactId>-->
  108. <!--<version>2.9.6</version>-->
  109. <!--</dependency>-->
  110. </dependencies>
  111. <build>
  112. <plugins>
  113. <plugin>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-maven-plugin</artifactId>
  116. </plugin>
  117. <!-- 添加docker-maven插件 -->
  118. <plugin>
  119. <groupId>com.spotify</groupId>
  120. <artifactId>docker-maven-plugin</artifactId>
  121. <version>1.1.1</version>
  122. <configuration>
  123. <imageName>lantone/${project.artifactId}:${project.version}</imageName>
  124. <pushImage>true</pushImage>
  125. <!--<forceTags>true</forceTags>-->
  126. <!--镜像的FROM,使用java官方镜像-->
  127. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  128. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  129. <resources>
  130. <resource>
  131. <targetPath>/</targetPath>
  132. <directory>${project.build.directory}</directory>
  133. <include>${project.build.finalName}.jar</include>
  134. </resource>
  135. </resources>
  136. <serverId>docker-registry</serverId>
  137. <registryUrl>${registryUrl}</registryUrl>
  138. </configuration>
  139. </plugin>
  140. </plugins>
  141. </build>
  142. </project>