268 lines
11 KiB
XML
268 lines
11 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>
|
|||
|
|
|||
|
<groupId>com.ydool.boot.modules.rddb</groupId>
|
|||
|
<artifactId>ydool-rddb</artifactId>
|
|||
|
<version>1.0-SNAPSHOT</version>
|
|||
|
|
|||
|
<parent>
|
|||
|
<groupId>com.ydool.boot</groupId>
|
|||
|
<artifactId>ydool-boot</artifactId>
|
|||
|
<version>1.0.0-SNAPSHOT</version>
|
|||
|
</parent>
|
|||
|
|
|||
|
<properties>
|
|||
|
<app.build.name>${project.artifactId}-${project.version}</app.build.name>
|
|||
|
<app.build.prod>target/build</app.build.prod>
|
|||
|
</properties>
|
|||
|
|
|||
|
<dependencies>
|
|||
|
<dependency>
|
|||
|
<groupId>com.ydool.boot</groupId>
|
|||
|
<artifactId>ydool-boot-module</artifactId>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<dependency>
|
|||
|
<groupId>org.projectlombok</groupId>
|
|||
|
<artifactId>lombok</artifactId>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<dependency>
|
|||
|
<groupId>com.baomidou</groupId>
|
|||
|
<artifactId>mybatis-plus-generator</artifactId>
|
|||
|
<version>3.3.2</version>
|
|||
|
</dependency>
|
|||
|
<dependency>
|
|||
|
<groupId>com.alibaba</groupId>
|
|||
|
<artifactId>fastjson</artifactId>
|
|||
|
<version>1.2.58</version>
|
|||
|
</dependency>
|
|||
|
<dependency>
|
|||
|
<groupId>cn.hutool</groupId>
|
|||
|
<artifactId>hutool-extra</artifactId>
|
|||
|
<version>${hutool.version}</version>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<!--swagger-->
|
|||
|
<dependency>
|
|||
|
<groupId>com.github.xiaoymin</groupId>
|
|||
|
<artifactId>knife4j-spring-boot-starter</artifactId>
|
|||
|
<version>2.0.5</version>
|
|||
|
</dependency>
|
|||
|
<!--jwt-->
|
|||
|
<dependency>
|
|||
|
<groupId>io.jsonwebtoken</groupId>
|
|||
|
<artifactId>jjwt</artifactId>
|
|||
|
<version>0.9.1</version>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<!--阿里云短信-->
|
|||
|
<dependency>
|
|||
|
<groupId>com.aliyun</groupId>
|
|||
|
<artifactId>aliyun-java-sdk-core</artifactId>
|
|||
|
<version>4.0.6</version> <!-- 注:如提示报错,先升级基础包版,无法解决可联系技术支持 -->
|
|||
|
</dependency>
|
|||
|
<dependency>
|
|||
|
<groupId>com.aliyun</groupId>
|
|||
|
<artifactId>aliyun-java-sdk-dysmsapi</artifactId>
|
|||
|
<version>1.1.0</version>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<!--redis-->
|
|||
|
<dependency>
|
|||
|
<groupId>org.springframework.data</groupId>
|
|||
|
<artifactId>spring-data-redis</artifactId>
|
|||
|
<version>2.3.4.RELEASE</version>
|
|||
|
</dependency>
|
|||
|
<dependency>
|
|||
|
<groupId>redis.clients</groupId>
|
|||
|
<artifactId>jedis</artifactId>
|
|||
|
<version>3.3.0</version>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<dependency>
|
|||
|
<groupId>org.jsoup</groupId>
|
|||
|
<artifactId>jsoup</artifactId>
|
|||
|
<version>1.11.2</version>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<dependency>
|
|||
|
<groupId>com.alibaba.platform.shared</groupId>
|
|||
|
<artifactId>xxpt.gateway.shared.client</artifactId>
|
|||
|
<version>1.0</version>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<dependency>
|
|||
|
<groupId>joda-time</groupId>
|
|||
|
<artifactId>joda-time</artifactId>
|
|||
|
<version>2.10</version>
|
|||
|
</dependency>
|
|||
|
|
|||
|
</dependencies>
|
|||
|
|
|||
|
<build>
|
|||
|
<plugins>
|
|||
|
<!-- 打JAR包 -->
|
|||
|
<plugin>
|
|||
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
<artifactId>maven-jar-plugin</artifactId>
|
|||
|
<configuration>
|
|||
|
<archive>
|
|||
|
<manifest>
|
|||
|
<addClasspath>true</addClasspath>
|
|||
|
<!-- MANIFEST.MF 中 Class-Path 加入前缀 -->
|
|||
|
<classpathPrefix>lib/</classpathPrefix>
|
|||
|
<!-- jar包不包含唯一版本标识 -->
|
|||
|
<useUniqueVersions>false</useUniqueVersions>
|
|||
|
<!--指定入口类 需要改名 -->
|
|||
|
<mainClass>com.ydool.boot.Application</mainClass>
|
|||
|
</manifest>
|
|||
|
<manifestEntries>
|
|||
|
<!--MANIFEST.MF 中 Class-Path 加入资源文件目录 -->
|
|||
|
<Class-Path>./resources/</Class-Path>
|
|||
|
</manifestEntries>
|
|||
|
</archive>
|
|||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|||
|
</configuration>
|
|||
|
</plugin>
|
|||
|
<!-- 该插件的作用是用于复制依赖的jar包到指定的文件夹里 -->
|
|||
|
<plugin>
|
|||
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
<artifactId>maven-dependency-plugin</artifactId>
|
|||
|
<executions>
|
|||
|
<execution>
|
|||
|
<id>copy-dependencies</id>
|
|||
|
<phase>package</phase>
|
|||
|
<goals>
|
|||
|
<goal>copy-dependencies</goal>
|
|||
|
</goals>
|
|||
|
<configuration>
|
|||
|
<outputDirectory>${project.build.directory}/lib/</outputDirectory>
|
|||
|
</configuration>
|
|||
|
</execution>
|
|||
|
</executions>
|
|||
|
</plugin>
|
|||
|
<!-- 该插件的作用是用于复制指定的文件 -->
|
|||
|
<plugin>
|
|||
|
<artifactId>maven-resources-plugin</artifactId>
|
|||
|
<executions>
|
|||
|
<execution>
|
|||
|
<!-- 复制配置文件 -->
|
|||
|
<id>copy-resources</id>
|
|||
|
<phase>package</phase>
|
|||
|
<goals>
|
|||
|
<goal>copy-resources</goal>
|
|||
|
</goals>
|
|||
|
<configuration>
|
|||
|
<resources>
|
|||
|
<resource>
|
|||
|
<directory>src/main/resources</directory>
|
|||
|
<includes>
|
|||
|
<include>*.properties</include>
|
|||
|
<include>*.xml</include>
|
|||
|
<include>*.yml</include>
|
|||
|
</includes>
|
|||
|
<excludes>
|
|||
|
<exclude>*.jar</exclude>
|
|||
|
</excludes>
|
|||
|
</resource>
|
|||
|
</resources>
|
|||
|
<outputDirectory>${project.build.directory}/resources</outputDirectory>
|
|||
|
</configuration>
|
|||
|
</execution>
|
|||
|
</executions>
|
|||
|
</plugin>
|
|||
|
<plugin>
|
|||
|
<groupId>org.springframework.boot</groupId>
|
|||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|||
|
<version>2.1.7.RELEASE</version>
|
|||
|
<configuration>
|
|||
|
<!--重写包含依赖,包含不存在的依赖,jar里没有pom里的依赖 -->
|
|||
|
<includes>
|
|||
|
<include>
|
|||
|
<groupId>null</groupId>
|
|||
|
<artifactId>null</artifactId>
|
|||
|
</include>
|
|||
|
</includes>
|
|||
|
<layout>ZIP</layout>
|
|||
|
<!--使用外部配置文件,jar包里没有资源文件 -->
|
|||
|
<addResources>true</addResources>
|
|||
|
<outputDirectory>${project.build.directory}/resources</outputDirectory>
|
|||
|
</configuration>
|
|||
|
|
|||
|
<executions>
|
|||
|
<execution>
|
|||
|
<goals>
|
|||
|
<goal>repackage</goal>
|
|||
|
</goals>
|
|||
|
|
|||
|
<configuration>
|
|||
|
<!--配置jar包特殊标识 配置后,保留原文件,生成新文件 *-run.jar -->
|
|||
|
<!--配置jar包特殊标识 不配置,原文件命名为 *.jar.original,生成新文件 *.jar -->
|
|||
|
<!--<classifier>run</classifier> -->
|
|||
|
</configuration>
|
|||
|
|
|||
|
</execution>
|
|||
|
</executions>
|
|||
|
</plugin>
|
|||
|
<!-- 对打包后的文件重新进行组装 -->
|
|||
|
<plugin>
|
|||
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
<artifactId>maven-antrun-plugin</artifactId>
|
|||
|
<executions>
|
|||
|
<execution>
|
|||
|
<phase>package</phase>
|
|||
|
<goals>
|
|||
|
<goal>run</goal>
|
|||
|
</goals>
|
|||
|
<configuration>
|
|||
|
<tasks>
|
|||
|
|
|||
|
<copy file="${project.basedir}/target/${app.build.name}.jar" tofile="${app.build.prod}/rddb.jar" />
|
|||
|
<copy file="${project.basedir}/bin/run-web.sh" tofile="${app.build.prod}/start.sh" />
|
|||
|
|
|||
|
<!-- 复制资源文件 -->
|
|||
|
<copy todir="${app.build.prod}">
|
|||
|
<fileset dir="target/resources">
|
|||
|
<include name="**/*.properties" />
|
|||
|
<include name="**/*.xml" />
|
|||
|
<include name="**/*.yml" />
|
|||
|
</fileset>
|
|||
|
</copy>
|
|||
|
|
|||
|
<!-- 复制包文件 -->
|
|||
|
<copy todir="${app.build.prod}/lib">
|
|||
|
<fileset dir="target/lib" />
|
|||
|
</copy>
|
|||
|
|
|||
|
</tasks>
|
|||
|
</configuration>
|
|||
|
</execution>
|
|||
|
</executions>
|
|||
|
</plugin>
|
|||
|
</plugins>
|
|||
|
</build>
|
|||
|
|
|||
|
<repositories>
|
|||
|
<repository>
|
|||
|
<id>aliyun-repos</id>
|
|||
|
<url>https://maven.aliyun.com/repository/public</url>
|
|||
|
<releases><enabled>true</enabled></releases>
|
|||
|
<snapshots><enabled>false</enabled></snapshots>
|
|||
|
</repository>
|
|||
|
<repository>
|
|||
|
<id>ydool-repos</id>
|
|||
|
<url>https://devrepo.devcloud.cn-east-3.huaweicloud.com/04/nexus/content/repositories/9c507cc7f48c41b886f10a07a3b5fe45_1_0/</url>
|
|||
|
</repository>
|
|||
|
</repositories>
|
|||
|
<pluginRepositories>
|
|||
|
<pluginRepository>
|
|||
|
<id>aliyun-repos</id>
|
|||
|
<url>https://maven.aliyun.com/repository/public</url>
|
|||
|
</pluginRepository>
|
|||
|
</pluginRepositories>
|
|||
|
|
|||
|
</project>
|