pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. <parent>
  7. <groupId>com.hcloud.microserver</groupId>
  8. <artifactId>common-parent</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <groupId>com.hywa</groupId>
  12. <artifactId>supply-chain-sys-service</artifactId>
  13. <version>${supply-chain-sys-service.version}</version>
  14. <name>supply-chain-sys-service</name>
  15. <description>Demo project for Spring Boot</description>
  16. <profiles>
  17. <profile>
  18. <id>dev</id>
  19. <!--默认激活当前配置-->
  20. <activation>
  21. <activeByDefault>true</activeByDefault>
  22. </activation>
  23. <properties>
  24. <profiles.active>dev</profiles.active>
  25. <!-- Docker 配置 -->
  26. <docker.dockerHost>http://172.16.90.64:22375</docker.dockerHost>
  27. <docker.serviceId>DockerHub</docker.serviceId>
  28. <docker.image.version>1.0.0</docker.image.version>
  29. </properties>
  30. </profile>
  31. <profile>
  32. <id>pro</id>
  33. <properties>
  34. <profiles.active>pro</profiles.active>
  35. <!-- Docker 配置 -->
  36. <docker.dockerHost>http://172.17.14.184:22375</docker.dockerHost>
  37. <docker.serviceId>DockerHub</docker.serviceId>
  38. <docker.image.version>1.0.0</docker.image.version>
  39. </properties>
  40. </profile>
  41. </profiles>
  42. <properties>
  43. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  44. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  45. <java.version>1.8</java.version>
  46. <druid.version>1.1.6</druid.version>
  47. </properties>
  48. <dependencies>
  49. <dependency>
  50. <groupId>com.hcloud.microserver</groupId>
  51. <artifactId>common-core</artifactId>
  52. <version>${common.core.version}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>mysql</groupId>
  56. <artifactId>mysql-connector-java</artifactId>
  57. <scope>runtime</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.alibaba</groupId>
  61. <artifactId>druid</artifactId>
  62. <version>${druid.version}</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-data-redis</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.cloud</groupId>
  70. <artifactId>spring-cloud-starter-eureka</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.hywa</groupId>
  74. <artifactId>supply-chain-sys-client</artifactId>
  75. <version>${supply-chain-sys-client.version}</version>
  76. <scope>compile</scope>
  77. </dependency>
  78. </dependencies>
  79. <build>
  80. <plugins>
  81. <plugin>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-maven-plugin</artifactId>
  84. </plugin>
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-surefire-plugin</artifactId>
  88. <version>2.18.1</version>
  89. <configuration>
  90. <skipTests>true</skipTests>
  91. </configuration>
  92. </plugin>
  93. <plugin>
  94. <groupId>com.spotify</groupId>
  95. <artifactId>docker-maven-plugin</artifactId>
  96. <version>1.2.2</version>
  97. <configuration>
  98. <serverId>${docker.serviceId}</serverId>
  99. <dockerHost>${docker.dockerHost}</dockerHost>
  100. <imageName>docker.io/${project.artifactId}:${docker.image.version}</imageName>
  101. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  102. <resources>
  103. <resource>
  104. <targetPath>/</targetPath>
  105. <directory>${project.build.directory}</directory>
  106. <include>${project.build.finalName}.jar</include>
  107. </resource>
  108. </resources>
  109. </configuration>
  110. </plugin>
  111. </plugins>
  112. </build>
  113. </project>