215 lines
7.6 KiB
XML
215 lines
7.6 KiB
XML
<?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>
|
||
<parent>
|
||
<groupId>com.cdzy</groupId>
|
||
<artifactId>ebike-share</artifactId>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
</parent>
|
||
<artifactId>ebike-payment</artifactId>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
<name>ebike-payment</name>
|
||
<description>ebike-payment-process</description>
|
||
<packaging>jar</packaging>
|
||
|
||
<properties>
|
||
<maven.compiler.source>17</maven.compiler.source>
|
||
<maven.compiler.target>17</maven.compiler.target>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<docker.image.prefix>cdzy_ebike</docker.image.prefix>
|
||
</properties>
|
||
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.cdzy</groupId>
|
||
<artifactId>ebike-common</artifactId>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.cdzy</groupId>
|
||
<artifactId>ebike-feign</artifactId>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
<version>${boot.version}</version>
|
||
</dependency>
|
||
|
||
<!-- mybatis-flex -->
|
||
<dependency>
|
||
<groupId>com.mybatis-flex</groupId>
|
||
<artifactId>mybatis-flex-spring-boot3-starter</artifactId>
|
||
<version>${mybatis-flex.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.mybatis-flex</groupId>
|
||
<artifactId>mybatis-flex-processor</artifactId>
|
||
<version>${mybatis-flex.version}</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
<!-- nacos客户端依赖包 -->
|
||
<dependency>
|
||
<groupId>com.alibaba.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||
<version>${nacos.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.mysql</groupId>
|
||
<artifactId>mysql-connector-j</artifactId>
|
||
<version>${mysql.version}</version>
|
||
<scope>runtime</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter</artifactId>
|
||
<version>${boot.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
||
</dependency>
|
||
<!-- 微信支付SDK -->
|
||
<dependency>
|
||
<groupId>com.github.wechatpay-apiv3</groupId>
|
||
<artifactId>wechatpay-java</artifactId>
|
||
<version>0.2.17</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<version>${org.projectlombok.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.zaxxer</groupId>
|
||
<artifactId>HikariCP</artifactId>
|
||
<version>${HikariCP.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.mybatis</groupId>
|
||
<artifactId>mybatis-spring</artifactId>
|
||
<version>${mybatis.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>cn.hutool</groupId>
|
||
<artifactId>hutool-core</artifactId>
|
||
<version>${hutool.version}</version>
|
||
</dependency>
|
||
|
||
<!-- Java Servlet -->
|
||
<dependency>
|
||
<groupId>javax.servlet</groupId>
|
||
<artifactId>javax.servlet-api</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
<!-- Sa-Token 权限认证,在线文档:https://sa-token.cc -->
|
||
<dependency>
|
||
<groupId>cn.dev33</groupId>
|
||
<artifactId>sa-token-spring-boot3-starter</artifactId>
|
||
<version>${satoken.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-validation</artifactId>
|
||
<version>${boot.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.squareup.okhttp3</groupId>
|
||
<artifactId>okhttp</artifactId>
|
||
<version>${okhttp.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.alibaba.fastjson2</groupId>
|
||
<artifactId>fastjson2</artifactId>
|
||
<version>${fastjson.version}</version>
|
||
</dependency>
|
||
<!-- for test only -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.mybatis-flex</groupId>
|
||
<artifactId>mybatis-flex-codegen</artifactId>
|
||
<version>1.10.8</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<profiles>
|
||
<!--开发环境-->
|
||
<profile>
|
||
<id>dev</id>
|
||
<properties>
|
||
<profile.active>dev</profile.active>
|
||
<!--谁设置为true 就激活那个环境-->
|
||
<activeByDefault>true</activeByDefault>
|
||
</properties>
|
||
|
||
</profile>
|
||
|
||
<!--生产环境-->
|
||
<profile>
|
||
<id>prod</id>
|
||
<properties>
|
||
<profile.active>prod</profile.active>
|
||
</properties>
|
||
</profile>
|
||
|
||
<profile>
|
||
<id>test</id>
|
||
<properties>
|
||
<profile.active>test</profile.active>
|
||
</properties>
|
||
</profile>
|
||
|
||
</profiles>
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
<version>${boot.version}</version> <!-- 与项目版本一致 -->
|
||
<executions>
|
||
<execution>
|
||
<goals>
|
||
<goal>repackage</goal> <!-- 必须包含此目标 -->
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>com.spotify</groupId>
|
||
<artifactId>docker-maven-plugin</artifactId>
|
||
<version>1.2.2</version>
|
||
<configuration>
|
||
<!--远程Docker的地址-->
|
||
<dockerHost>http://192.168.2.226:2375</dockerHost><!--镜像名称,前缀/项目名-->
|
||
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
|
||
<dockerDirectory>src/main/docker</dockerDirectory>
|
||
<resources>
|
||
<resource>
|
||
<targetPath>/</targetPath>
|
||
<directory>${project.build.directory}</directory>
|
||
<include>${project.build.finalName}.jar</include>
|
||
</resource>
|
||
</resources>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project> |