123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <?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>
- <groupId>com.yihu.hos</groupId>
- <artifactId>hos-docker</artifactId>
- <version>1.0.0</version>
- <packaging>jar</packaging>
- <name>hos-docker</name>
- <description>Demo project for Spring Boot docker</description>
- <parent>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>ehr-cloud-parent</artifactId>
- <version>1.13.1</version>
- </parent>
- <properties>
- <docker.image.prefix>eip2</docker.image.prefix>
- <docker.imageName>eip-parase</docker.imageName>
- <docker.maintainer>hos-parse</docker.maintainer>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <java.version>1.8</java.version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.yihu.hos</groupId>
- <artifactId>hos-web-framework</artifactId>
- <version>1.3.0</version>
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-mongodb</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>2.4</version>
- </dependency>
- <dependency>
- <groupId>org.jsoup</groupId>
- <artifactId>jsoup</artifactId>
- <version>1.11.3</version>
- </dependency>
- </dependencies>
- <build>
- <!-- Dockerfile文件路径配置 -->
- <resources>
- <resource>
- <directory>src/main/docker</directory>
- <filtering>true</filtering>
- <includes>
- <include>**/Dockerfile</include>
- </includes>
- <targetPath>src/main/docker</targetPath>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- </plugin>
- <!--<plugin>-->
- <!--<groupId>com.spotify</groupId>-->
- <!--<artifactId>docker-maven-plugin</artifactId>-->
- <!--<configuration>-->
- <!--<serverId>docker-hub</serverId>-->
- <!--<registryUrl>${docker.image.prefix}</registryUrl>-->
- <!--<dockerHost>http://172.19.103.37:2377</dockerHost>-->
- <!--<dockerCertPath>C:\Users\admin\.docker\machine\machines\manager</dockerCertPath>-->
- <!--<imageName>${docker.image.prefix}/${docker.imageName}:${project.version}</imageName>-->
- <!--<baseImage>java:8</baseImage>-->
- <!--<maintainer>${docker.maintainer}</maintainer>-->
- <!--<volumes>/tmp</volumes>-->
- <!--<entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>-->
- <!--<resources>-->
- <!--<resource>-->
- <!--<targetPath>/</targetPath>-->
- <!--<directory>${project.build.directory}</directory>-->
- <!--<include>${project.build.finalName}.jar</include>-->
- <!--</resource>-->
- <!--</resources>-->
- <!--</configuration>-->
- <!--</plugin>-->
- <!--<plugin>-->
- <!--<groupId>com.spotify</groupId>-->
- <!--<artifactId>dockerfile-maven-plugin</artifactId>-->
- <!--<version>1.4.0</version>-->
- <!--<configuration>-->
- <!--<repository>${docker.image.prefix}/${project.artifactId}</repository>-->
- <!--<buildArgs>-->
- <!--<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>-->
- <!--</buildArgs>-->
- <!--</configuration>-->
- <!--</plugin>-->
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <configuration>
- <imageName>${project.name}:${project.version}</imageName>
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- <skipDockerBuild>false</skipDockerBuild>
- <resources>
- <resource>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
|