pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.yihu.hos</groupId>
  6. <artifactId>hos-docker</artifactId>
  7. <version>1.0.0</version>
  8. <packaging>jar</packaging>
  9. <name>hos-docker</name>
  10. <description>Demo project for Spring Boot docker</description>
  11. <parent>
  12. <groupId>com.yihu.ehr</groupId>
  13. <artifactId>ehr-cloud-parent</artifactId>
  14. <version>1.13.1</version>
  15. </parent>
  16. <properties>
  17. <docker.image.prefix>eip2</docker.image.prefix>
  18. <docker.imageName>eip-parase</docker.imageName>
  19. <docker.maintainer>hos-parse</docker.maintainer>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  22. <java.version>1.8</java.version>
  23. </properties>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-test</artifactId>
  32. <scope>test</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.yihu.hos</groupId>
  36. <artifactId>hos-web-framework</artifactId>
  37. <version>1.3.0</version>
  38. <exclusions>
  39. <exclusion>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-data-mongodb</artifactId>
  42. </exclusion>
  43. </exclusions>
  44. </dependency>
  45. <dependency>
  46. <groupId>commons-io</groupId>
  47. <artifactId>commons-io</artifactId>
  48. <version>2.4</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.jsoup</groupId>
  52. <artifactId>jsoup</artifactId>
  53. <version>1.11.3</version>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <!-- Dockerfile文件路径配置 -->
  58. <resources>
  59. <resource>
  60. <directory>src/main/docker</directory>
  61. <filtering>true</filtering>
  62. <includes>
  63. <include>**/Dockerfile</include>
  64. </includes>
  65. <targetPath>src/main/docker</targetPath>
  66. </resource>
  67. </resources>
  68. <plugins>
  69. <plugin>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-maven-plugin</artifactId>
  72. </plugin>
  73. <!--<plugin>-->
  74. <!--<groupId>com.spotify</groupId>-->
  75. <!--<artifactId>docker-maven-plugin</artifactId>-->
  76. <!--<configuration>-->
  77. <!--<serverId>docker-hub</serverId>-->
  78. <!--<registryUrl>${docker.image.prefix}</registryUrl>-->
  79. <!--<dockerHost>http://172.19.103.37:2377</dockerHost>-->
  80. <!--<dockerCertPath>C:\Users\admin\.docker\machine\machines\manager</dockerCertPath>-->
  81. <!--<imageName>${docker.image.prefix}/${docker.imageName}:${project.version}</imageName>-->
  82. <!--<baseImage>java:8</baseImage>-->
  83. <!--<maintainer>${docker.maintainer}</maintainer>-->
  84. <!--<volumes>/tmp</volumes>-->
  85. <!--<entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>-->
  86. <!--<resources>-->
  87. <!--<resource>-->
  88. <!--<targetPath>/</targetPath>-->
  89. <!--<directory>${project.build.directory}</directory>-->
  90. <!--<include>${project.build.finalName}.jar</include>-->
  91. <!--</resource>-->
  92. <!--</resources>-->
  93. <!--</configuration>-->
  94. <!--</plugin>-->
  95. <!--<plugin>-->
  96. <!--<groupId>com.spotify</groupId>-->
  97. <!--<artifactId>dockerfile-maven-plugin</artifactId>-->
  98. <!--<version>1.4.0</version>-->
  99. <!--<configuration>-->
  100. <!--<repository>${docker.image.prefix}/${project.artifactId}</repository>-->
  101. <!--<buildArgs>-->
  102. <!--<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>-->
  103. <!--</buildArgs>-->
  104. <!--</configuration>-->
  105. <!--</plugin>-->
  106. <plugin>
  107. <groupId>com.spotify</groupId>
  108. <artifactId>docker-maven-plugin</artifactId>
  109. <configuration>
  110. <imageName>${project.name}:${project.version}</imageName>
  111. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  112. <skipDockerBuild>false</skipDockerBuild>
  113. <resources>
  114. <resource>
  115. <directory>${project.build.directory}</directory>
  116. <include>${project.build.finalName}.jar</include>
  117. </resource>
  118. </resources>
  119. </configuration>
  120. </plugin>
  121. </plugins>
  122. </build>
  123. </project>