pom.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. <parent>
  6. <artifactId>hsweb-examples</artifactId>
  7. <groupId>org.hswebframework.web</groupId>
  8. <version>3.0.0-RC-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>hsweb-examples-cloud</artifactId>
  12. <packaging>pom</packaging>
  13. <modules>
  14. <module>hsweb-examples-cloud-gateway</module>
  15. <module>hsweb-examples-cloud-user-center</module>
  16. <module>hsweb-examples-cloud-service01</module>
  17. </modules>
  18. <build>
  19. <plugins>
  20. <plugin>
  21. <groupId>com.spotify</groupId>
  22. <artifactId>docker-maven-plugin</artifactId>
  23. <version>0.4.13</version>
  24. <configuration>
  25. <imageName>hsweb/${project.artifactId}:${project.version}</imageName>
  26. <baseImage>java:8</baseImage>
  27. <entryPoint>["java","-jar","-Dspring.profiles.active=docker","${project.build.finalName}.jar"]</entryPoint>
  28. <resources>
  29. <resource>
  30. <targetPath>/</targetPath>
  31. <directory>${project.build.directory}</directory>
  32. <include>${project.build.finalName}.jar</include>
  33. </resource>
  34. </resources>
  35. </configuration>
  36. </plugin>
  37. </plugins>
  38. </build>
  39. <dependencyManagement>
  40. <dependencies>
  41. <dependency>
  42. <groupId>org.springframework.cloud</groupId>
  43. <artifactId>spring-cloud-dependencies</artifactId>
  44. <version>Dalston.SR4</version>
  45. <type>pom</type>
  46. <scope>import</scope>
  47. </dependency>
  48. </dependencies>
  49. </dependencyManagement>
  50. </project>