123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.6.3</version>
- <relativePath/> <!-- lookup parent from repository -->
- </parent>
- <groupId>com.sw</groupId>
- <artifactId>mask</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>mask</name>
- <packaging>jar</packaging>
- <description>口罩秒杀</description>
- <properties>
- <java.version>1.8</java.version>
- <docker.image.prefix>mask</docker.image.prefix>
- <!-- <elasticsearch.version>8.0.1</elasticsearch.version>-->
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <!-- <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.alibaba</groupId>
- <artifactId>druid</artifactId>
- <version>1.2.5</version>
- </dependency>
- <!-- mysql -->
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- </dependency>
- <!-- mybatis plus -->
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-boot-starter</artifactId>
- <version>3.5.1</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-activemq</artifactId>
- </dependency>
- <!-- lombok -->
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <optional>true</optional>
- </dependency>
- <!-- redis -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-redis</artifactId>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </dependency>
- <!-- redisson -->
- <dependency>
- <groupId>org.redisson</groupId>
- <artifactId>redisson</artifactId>
- <version>3.16.7</version>
- </dependency>
- <dependency>
- <groupId>org.redisson</groupId>
- <artifactId>redisson-spring-boot-starter</artifactId>
- <version>3.16.7</version>
- </dependency>
- <!--hutool工具类-->
- <!-- <dependency>-->
- <!-- <groupId>cn.hutool</groupId>-->
- <!-- <artifactId>hutool-core</artifactId>-->
- <!-- <version>4.4.0</version>-->
- <!-- </dependency>-->
- <!-- <dependency>-->
- <!-- <groupId>cn.hutool</groupId>-->
- <!-- <artifactId>hutool-all</artifactId>-->
- <!-- <version>4.5.7</version>-->
- <!-- </dependency>-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-mongodb</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>1.2.75</version>
- </dependency>
- <dependency>
- <groupId>org.jsoup</groupId>
- <artifactId>jsoup</artifactId>
- <version>1.11.2</version>
- </dependency>
- <dependency>
- <groupId>org.rxtx</groupId>
- <artifactId>rxtx</artifactId>
- <version>2.1.7</version>
- </dependency>
- <!-- swagger -->
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger-ui</artifactId>
- <version>3.0.0</version>
- </dependency>
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-boot-starter</artifactId>
- <version>3.0.0</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>2.6.0</version>
- </plugin>
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.0.0</version>
- <configuration>
- <!-- 镜像名称 guoweixin/exam-->
- <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
- <!--指定标签-->
- <imageTags>
- <imageTag>latest</imageTag>
- </imageTags>
- <!-- 基础镜像jdk 1.8-->
- <baseImage>java</baseImage>
- <!-- 制作者提供本人信息 -->
- <maintainer>yegang</maintainer>
- <!--切换到/ROOT目录 -->
- <workdir>/ROOT</workdir>
- <cmd>["java", "-version"]</cmd>
- <entryPoint>["java", "-jar", "${project.build.finalName}.jar"]</entryPoint>
- <!-- 指定 Dockerfile 路径
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- -->
- <!--指定远程 docker api地址-->
- <dockerHost>http://192.168.20.87:2375</dockerHost>
- <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
- <resources>
- <resource>
- <targetPath>/ROOT</targetPath>
- <!--用于指定需要复制的根目录,${project.build.directory}表示target目录-->
- <directory>${project.build.directory}</directory>
- <!--用于指定需要复制的文件。${project.build.finalName}.jar指的是打包后的jar
- 包文件。-->
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
|