123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <?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>
- <packaging>pom</packaging>
- <modules>
- <module>middle-school</module>
- <module>adult-college</module>
- <module>university</module>
- <module>employment-subsidy</module>
- <module>training-subsidy</module>
- <module>job-subsidy</module>
- <module>professional-qualification</module>
- <module>talent-intermediary</module>
- <module>civil-service-performance</module>
- <module>assisted-reproductive-institution</module>
- <module>medical-insurance-institution</module>
- <module>airport-throughput</module>
- <module>car-repair-station</module>
- <module>common</module>
- </modules>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.1.4.RELEASE</version>
- <relativePath/> <!-- lookup parent from repository -->
- </parent>
- <groupId>com.dgtis</groupId>
- <artifactId>hsdata-app</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>hsdata-app</name>
- <description>衡水市大数据信息平台微应用</description>
- <properties>
- <java.version>1.8</java.version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid-spring-boot-starter</artifactId>
- <version>1.1.10</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-jpa</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-rest</artifactId>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- </plugin>
- <!--使用docker-maven-plugin插件-->
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.0.0</version>
- <!--将插件绑定在某个phase执行-->
- <executions>
- <execution>
- <id>build-image</id>
- <!--将插件绑定在package这个phase上。也就是说,用户只需执行mvn package ,就会自动执行mvn docker:build-->
- <phase>package</phase>
- <goals>
- <goal>build</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <!--指定生成的镜像名-->
- <imageName>hsdata/${project.artifactId}</imageName>
- <!--指定标签-->
- <imageTags>
- <imageTag>1.0</imageTag>
- </imageTags>
- <!-- 指定 Dockerfile 路径-->
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- <!--指定远程 docker api地址-->
- <dockerHost>http://39.98.206.39:2375</dockerHost>
- <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <!--jar 包所在的路径 此处配置的 即对应 target 目录-->
- <directory>${project.build.directory}</directory>
- <!-- 需要包含的 jar包 ,这里对应的是 Dockerfile中添加的文件名 -->
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
|