pom.xml 3.9 KB

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