123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>com.hcloud.microserver</groupId>
- <artifactId>common-parent</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </parent>
- <groupId>com.hywa</groupId>
- <artifactId>supply-chain-sys-service</artifactId>
- <version>${supply-chain-sys-service.version}</version>
- <name>supply-chain-sys-service</name>
- <description>Demo project for Spring Boot</description>
- <profiles>
- <profile>
- <id>dev</id>
- <!--默认激活当前配置-->
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- <profiles.active>dev</profiles.active>
- <!-- Docker 配置 -->
- <docker.dockerHost>http://172.16.90.64:22375</docker.dockerHost>
- <docker.serviceId>DockerHub</docker.serviceId>
- <docker.image.version>1.0.0</docker.image.version>
- </properties>
- </profile>
- <profile>
- <id>pro</id>
- <properties>
- <profiles.active>pro</profiles.active>
- <!-- Docker 配置 -->
- <docker.dockerHost>http://172.17.14.184:22375</docker.dockerHost>
- <docker.serviceId>DockerHub</docker.serviceId>
- <docker.image.version>1.0.0</docker.image.version>
- </properties>
- </profile>
- </profiles>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <java.version>1.8</java.version>
- <druid.version>1.1.6</druid.version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>com.hcloud.microserver</groupId>
- <artifactId>common-core</artifactId>
- <version>${common.core.version}</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid</artifactId>
- <version>${druid.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-redis</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-eureka</artifactId>
- </dependency>
- <dependency>
- <groupId>com.hywa</groupId>
- <artifactId>supply-chain-sys-client</artifactId>
- <version>${supply-chain-sys-client.version}</version>
- <scope>compile</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.18.1</version>
- <configuration>
- <skipTests>true</skipTests>
- </configuration>
- </plugin>
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.2.2</version>
- <configuration>
- <serverId>${docker.serviceId}</serverId>
- <dockerHost>${docker.dockerHost}</dockerHost>
- <imageName>docker.io/${project.artifactId}:${docker.image.version}</imageName>
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
|