mirror of
https://github.com/201206030/novel-plus.git
synced 2025-04-26 17:20:52 +00:00
179 lines
6.9 KiB
Java
179 lines
6.9 KiB
Java
<?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>novel</artifactId>
|
||
<groupId>com.java2nb</groupId>
|
||
<version>3.5.4</version>
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<artifactId>novel-front</artifactId>
|
||
|
||
<name>novel-front</name>
|
||
<description>小说精品屋 前台</description>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.java2nb</groupId>
|
||
<artifactId>novel-common</artifactId>
|
||
</dependency>
|
||
|
||
<!--JWT(Json Web Token)登录支持-->
|
||
<dependency>
|
||
<groupId>io.jsonwebtoken</groupId>
|
||
<artifactId>jjwt</artifactId>
|
||
<version>${jjwt.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||
</dependency>
|
||
|
||
|
||
<dependency>
|
||
<groupId>io.searchbox</groupId>
|
||
<artifactId>jest</artifactId>
|
||
<version>${jest.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.elasticsearch.client</groupId>
|
||
<artifactId>elasticsearch-rest-high-level-client</artifactId>
|
||
<version>${elasticsearch.version}</version>
|
||
</dependency>
|
||
|
||
<!--aliyunOSS-->
|
||
<dependency>
|
||
<groupId>com.aliyun.oss</groupId>
|
||
<artifactId>aliyun-sdk-oss</artifactId>
|
||
<version>${aliyun-sdk-oss.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>commons-fileupload</groupId>
|
||
<artifactId>commons-fileupload</artifactId>
|
||
<version>${commons-fileupload.version}</version>
|
||
</dependency>
|
||
|
||
<!--FastDfs-->
|
||
<dependency>
|
||
<groupId>com.github.tobato</groupId>
|
||
<artifactId>fastdfs-client</artifactId>
|
||
<version>${fastdfs-client.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
|
||
</dependency>
|
||
|
||
|
||
|
||
|
||
<!--引入redisson分布式锁-->
|
||
<!-- <dependency>
|
||
<groupId>org.redisson</groupId>
|
||
<artifactId>redisson-spring-boot-starter</artifactId>
|
||
<version>${redisson.version}</version>
|
||
</dependency>-->
|
||
|
||
|
||
<dependency>
|
||
<groupId>com.alipay.sdk</groupId>
|
||
<artifactId>alipay-sdk-java</artifactId>
|
||
<version>${alipay-sdk-java.version}</version>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<!-- <build>-->
|
||
<!-- <plugins>-->
|
||
<!-- <plugin>-->
|
||
<!-- <groupId>org.springframework.boot</groupId>-->
|
||
<!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
|
||
<!-- </plugin>-->
|
||
<!-- </plugins>-->
|
||
<!-- </build>-->
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<!--打包时去除第三方依赖-->
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
<configuration>
|
||
<layout>ZIP</layout>
|
||
<includes>
|
||
<include>
|
||
<groupId>non-exists</groupId>
|
||
<artifactId>non-exists</artifactId>
|
||
</include>
|
||
</includes>
|
||
</configuration>
|
||
</plugin>
|
||
<!--拷贝第三方依赖文件到指定目录-->
|
||
<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>
|
||
<!--target/lib是依赖jar包的输出目录,根据自己喜好配置-->
|
||
<outputDirectory>target/lib</outputDirectory>
|
||
<excludeTransitive>false</excludeTransitive>
|
||
<stripVersion>false</stripVersion>
|
||
<includeScope>runtime</includeScope>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<plugin>
|
||
<artifactId>maven-antrun-plugin</artifactId>
|
||
<version>1.8</version>
|
||
<executions>
|
||
<execution>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>run</goal>
|
||
</goals>
|
||
<configuration>
|
||
<tasks>
|
||
<!-- 文件夹 -->
|
||
<copy todir="${project.build.directory}/build/conf" overwrite="true">
|
||
<fileset dir="${basedir}/src/main/resources">
|
||
<include name="**/*.*"/>
|
||
<exclude name="mybatis/*/*.*"/>
|
||
</fileset>
|
||
</copy>
|
||
<move todir="${project.build.directory}/build/lib">
|
||
<fileset dir="target/lib"/>
|
||
</move>
|
||
<copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar"
|
||
tofile="${project.build.directory}/build/${project.artifactId}.jar" />
|
||
|
||
<fixcrlf srcdir="${basedir}/src/main/build/scripts" eol="unix"/>
|
||
<copy todir="${project.build.directory}/build/bin">
|
||
<fileset dir="${basedir}/src/main/build/scripts">
|
||
<include name="*.sh" />
|
||
<include name="*.txt" />
|
||
<include name="*.bat" />
|
||
</fileset>
|
||
</copy>
|
||
<zip destfile='${project.build.directory}/build/${project.artifactId}.zip'>
|
||
<zipfileset filemode="755" dir= '${project.build.directory}/build/' />
|
||
</zip>
|
||
</tasks>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
|
||
</project>
|