2024-03-22 19:22:45 +08:00
|
|
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
2024-03-22 17:48:02 +08:00
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2024-03-22 19:22:45 +08:00
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
<parent>
|
|
|
|
|
<groupId>com.atguigu</groupId>
|
2024-03-25 08:58:16 +08:00
|
|
|
|
<artifactId>spzx-parent-v2</artifactId>
|
2024-03-22 19:22:45 +08:00
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
|
</parent>
|
2024-03-22 17:48:02 +08:00
|
|
|
|
|
2024-03-22 19:22:45 +08:00
|
|
|
|
<artifactId>spzx-manager</artifactId>
|
|
|
|
|
<packaging>jar</packaging>
|
2024-03-22 17:48:02 +08:00
|
|
|
|
|
2024-03-22 19:22:45 +08:00
|
|
|
|
<name>spzx-manager</name>
|
|
|
|
|
<url>https://maven.apache.org</url>
|
2024-03-22 17:48:02 +08:00
|
|
|
|
|
2024-03-22 19:22:45 +08:00
|
|
|
|
<properties>
|
2024-03-29 21:40:34 +08:00
|
|
|
|
<docker.repostory>192.168.1.4:1100</docker.repostory>
|
|
|
|
|
<docker.registry.name>spzx</docker.registry.name>
|
2024-03-22 19:22:45 +08:00
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
</properties>
|
2024-03-22 17:48:02 +08:00
|
|
|
|
|
2024-03-22 19:22:45 +08:00
|
|
|
|
<dependencies>
|
|
|
|
|
<!-- 自己的模块 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.atguigu</groupId>
|
|
|
|
|
<artifactId>common-service</artifactId>
|
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
|
</dependency>
|
2024-03-26 21:07:44 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.atguigu</groupId>
|
|
|
|
|
<artifactId>common-log</artifactId>
|
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
|
</dependency>
|
2024-03-22 19:22:45 +08:00
|
|
|
|
<!-- spring boot web开发所需要的起步依赖 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!-- Spring的test -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!-- redis的起步依赖 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!-- mybatis的起步依赖 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!-- mysql驱动 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!-- 分页插件 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.github.pagehelper</groupId>
|
|
|
|
|
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
2024-03-29 16:42:28 +08:00
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
</plugin>
|
2024-03-29 21:40:34 +08:00
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<skip>true</skip>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>com.spotify</groupId>
|
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
|
<version>1.2.2</version>
|
|
|
|
|
<!--将插件绑定在某个phase执行-->
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>build-image</id>
|
|
|
|
|
<!--将插件绑定在package这个phase(阶段)上。也就是说,用户只需执行mvn package,就会自动执行mvn docker:build-->
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>build</goal>
|
|
|
|
|
<goal>push</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
<configuration>
|
|
|
|
|
<serverId>harbor</serverId>
|
|
|
|
|
<registryUrl>http://${docker.repostory}</registryUrl>
|
|
|
|
|
<!-- 配置docker主机地址 -->
|
|
|
|
|
<dockerHost>http://192.168.1.4:2375</dockerHost>
|
|
|
|
|
<!--指定生成的镜像名-->
|
|
|
|
|
<imageName>
|
|
|
|
|
${docker.repostory}/${docker.registry.name}/${project.artifactId}:${project.version}
|
|
|
|
|
</imageName>
|
|
|
|
|
<!-- 指定 dockerfile 路径-->
|
|
|
|
|
<dockerDirectory>${project.basedir}</dockerDirectory>
|
|
|
|
|
<!-- 是否跳过docker构建 -->
|
|
|
|
|
<skipDockerBuild>false</skipDockerBuild>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
2024-03-29 16:42:28 +08:00
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
2024-03-22 17:48:02 +08:00
|
|
|
|
</project>
|