pom.xml 5.3 KB

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