pom.xml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.diagbot</groupId>
  7. <artifactId>common-biz-client</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <name>common-biz-client</name>
  11. <description>common biz client project 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. <docker.image.prefix>192.168.2.236:5000/diagbotcloud</docker.image.prefix>
  19. <registryUrl>http://192.168.2.236:5000/repository/diagbotcloud/</registryUrl>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-web</artifactId>
  25. <version>2.2.1.RELEASE</version>
  26. <scope>provided</scope>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.cloud</groupId>
  30. <artifactId>spring-cloud-starter-openfeign</artifactId>
  31. <version>2.2.0.RELEASE</version>
  32. <scope>provided</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.cloud</groupId>
  36. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  37. <version>2.2.0.RELEASE</version>
  38. <scope>provided</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.projectlombok</groupId>
  42. <artifactId>lombok</artifactId>
  43. <version>1.18.10</version>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.diagbot</groupId>
  48. <artifactId>common</artifactId>
  49. <version>0.0.1-SNAPSHOT</version>
  50. <scope>provided</scope>
  51. </dependency>
  52. </dependencies>
  53. <build>
  54. <plugins>
  55. <plugin>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-maven-plugin</artifactId>
  58. </plugin>
  59. <!-- 添加docker-maven插件 -->
  60. <plugin>
  61. <groupId>com.spotify</groupId>
  62. <artifactId>docker-maven-plugin</artifactId>
  63. <version>1.1.1</version>
  64. <configuration>
  65. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  66. <pushImage>true</pushImage>
  67. <!--<forceTags>true</forceTags>-->
  68. <!--镜像的FROM,使用java官方镜像-->
  69. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  70. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8","/${project.build.finalName}.jar"]</entryPoint>
  71. <resources>
  72. <resource>
  73. <targetPath>/</targetPath>
  74. <directory>${project.build.directory}</directory>
  75. <include>${project.build.finalName}.jar</include>
  76. </resource>
  77. </resources>
  78. <serverId>docker-registry</serverId>
  79. <registryUrl>${registryUrl}</registryUrl>
  80. </configuration>
  81. </plugin>
  82. </plugins>
  83. </build>
  84. </project>