|
|
@@ -0,0 +1,156 @@
|
|
|
+<?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">
|
|
|
+ <parent>
|
|
|
+ <artifactId>zd-bottle-parent</artifactId>
|
|
|
+ <groupId>com.zd</groupId>
|
|
|
+ <version>3.1.0</version>
|
|
|
+ </parent>
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
+
|
|
|
+ <artifactId>zd-bottle</artifactId>
|
|
|
+
|
|
|
+ <dependencies>
|
|
|
+
|
|
|
+ <!-- SpringCloud Alibaba Nacos -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- SpringCloud Alibaba Nacos Config -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- SpringCloud Alibaba Nacos Config -->
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.nacos</groupId>
|
|
|
+ <artifactId>nacos-spring-context</artifactId>
|
|
|
+ <version>0.2.3-RC1</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- SpringCloud Alibaba Sentinel -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- SpringBoot Actuator -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Swagger UI -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.springfox</groupId>
|
|
|
+ <artifactId>springfox-swagger-ui</artifactId>
|
|
|
+ <version>${swagger.fox.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Mysql Connector -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.google.code.gson</groupId>
|
|
|
+ <artifactId>gson</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.baomidou</groupId>
|
|
|
+ <artifactId>mybatis-plus-boot-starter</artifactId>
|
|
|
+ <version>${dynamic-ds.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.zd</groupId>
|
|
|
+ <artifactId>zd-bottle-api</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <!-- 打包时跳过test插件,不运行test测试用例 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
+ <version>${maven-surefire-plugin.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <skipTests>true</skipTests>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- docker的maven插件 -->
|
|
|
+ <!-- <plugin>-->
|
|
|
+ <!-- <groupId>io.fabric8</groupId>-->
|
|
|
+ <!-- <artifactId>docker-maven-plugin</artifactId>-->
|
|
|
+ <!-- <version>${docker.maven.verion}</version>-->
|
|
|
+ <!-- <executions>-->
|
|
|
+ <!-- <!–执行 mvn package 时 自动构建docker镜像并推送到仓库 –>-->
|
|
|
+ <!-- <execution>-->
|
|
|
+ <!-- <id>default</id>-->
|
|
|
+ <!-- <phase>package</phase>-->
|
|
|
+ <!-- <goals>-->
|
|
|
+ <!-- <goal>remove</goal>-->
|
|
|
+ <!-- <goal>build</goal>-->
|
|
|
+ <!-- <goal>push</goal>-->
|
|
|
+ <!-- </goals>-->
|
|
|
+ <!-- </execution>-->
|
|
|
+ <!-- </executions>-->
|
|
|
+ <!-- <configuration>-->
|
|
|
+ <!-- <!– docker主机 –>-->
|
|
|
+ <!-- <dockerHost>tcp://192.168.1.88:2375</dockerHost>-->
|
|
|
+ <!-- <authConfig>-->
|
|
|
+ <!-- <!– registry服务的认证–>-->
|
|
|
+ <!-- <username>${docker.registry.username}</username>-->
|
|
|
+ <!-- <password>${docker.registry.password}</password>-->
|
|
|
+ <!-- </authConfig>-->
|
|
|
+ <!-- <images>-->
|
|
|
+ <!-- <image>-->
|
|
|
+ <!-- <!– [命名空间] / [镜像名称:版本号] –>-->
|
|
|
+ <!-- <name>${docker.registry}/${docker.namespace}/${project.artifactId}</name>-->
|
|
|
+ <!-- <!– 仓库地址 –>-->
|
|
|
+ <!-- <registry>${docker.registry}</registry>-->
|
|
|
+ <!-- <build>-->
|
|
|
+ <!-- <dockerFile>${project.basedir}/Dockerfile</dockerFile>-->
|
|
|
+ <!-- <tags>-->
|
|
|
+ <!-- <tag>${project.version}</tag>-->
|
|
|
+ <!-- </tags>-->
|
|
|
+ <!-- </build>-->
|
|
|
+ <!-- </image>-->
|
|
|
+ <!-- </images>-->
|
|
|
+ <!-- <buildArgs>-->
|
|
|
+ <!-- <!– dockerfile参数,指定jar路径 –>-->
|
|
|
+ <!-- <JAR_FILE>${project.artifactId}.jar</JAR_FILE>-->
|
|
|
+ <!-- </buildArgs>-->
|
|
|
+ <!-- </configuration>-->
|
|
|
+ <!-- </plugin>-->
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+
|
|
|
+</project>
|