257 lines
9.5 KiB
XML
257 lines
9.5 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">
|
|||
|
|
<parent>
|
|||
|
|
<artifactId>redmall-eladmin</artifactId>
|
|||
|
|
<groupId>com.wuqian</groupId>
|
|||
|
|
<version>2.6</version>
|
|||
|
|
</parent>
|
|||
|
|
<modelVersion>4.0.0</modelVersion>
|
|||
|
|
|
|||
|
|
<artifactId>redmall-system</artifactId>
|
|||
|
|
<name>核心模块</name>
|
|||
|
|
|
|||
|
|
<properties>
|
|||
|
|
<jjwt.version>0.11.1</jjwt.version>
|
|||
|
|
<!-- oshi监控需要指定jna版本, 问题详见 https://github.com/oshi/oshi/issues/1040 -->
|
|||
|
|
<jna.version>5.6.0</jna.version>
|
|||
|
|
</properties>
|
|||
|
|
|
|||
|
|
<dependencies>
|
|||
|
|
<!-- RedMall业务管理模块 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.wuqian</groupId>
|
|||
|
|
<artifactId>redmall-main</artifactId>
|
|||
|
|
<version>2.6</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- 代码生成模块 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.wuqian</groupId>
|
|||
|
|
<artifactId>redmall-generator</artifactId>
|
|||
|
|
<version>2.6</version>
|
|||
|
|
<exclusions>
|
|||
|
|
<exclusion>
|
|||
|
|
<groupId>com.wuqian</groupId>
|
|||
|
|
<artifactId>redmall-common</artifactId>
|
|||
|
|
</exclusion>
|
|||
|
|
</exclusions>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- tools 模块包含了 common 和 logging 模块 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.wuqian</groupId>
|
|||
|
|
<artifactId>redmall-tools</artifactId>
|
|||
|
|
<version>2.6</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- Spring boot websocket -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-starter-websocket</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- jwt -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>io.jsonwebtoken</groupId>
|
|||
|
|
<artifactId>jjwt-api</artifactId>
|
|||
|
|
<version>${jjwt.version}</version>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>io.jsonwebtoken</groupId>
|
|||
|
|
<artifactId>jjwt-impl</artifactId>
|
|||
|
|
<version>${jjwt.version}</version>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>io.jsonwebtoken</groupId>
|
|||
|
|
<artifactId>jjwt-jackson</artifactId>
|
|||
|
|
<version>${jjwt.version}</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- quartz -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.quartz-scheduler</groupId>
|
|||
|
|
<artifactId>quartz</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- linux的管理 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>ch.ethz.ganymed</groupId>
|
|||
|
|
<artifactId>ganymed-ssh2</artifactId>
|
|||
|
|
<version>build210</version>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.jcraft</groupId>
|
|||
|
|
<artifactId>jsch</artifactId>
|
|||
|
|
<version>0.1.55</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- 获取系统信息 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.github.oshi</groupId>
|
|||
|
|
<artifactId>oshi-core</artifactId>
|
|||
|
|
<version>5.3.6</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.github.tencentyun</groupId>
|
|||
|
|
<artifactId>tls-sig-api-v2</artifactId>
|
|||
|
|
<version>2.0</version>
|
|||
|
|
</dependency>
|
|||
|
|
</dependencies>
|
|||
|
|
|
|||
|
|
<!-- 打包 -->
|
|||
|
|
<profiles>
|
|||
|
|
<profile>
|
|||
|
|
<id>prod</id>
|
|||
|
|
<properties>
|
|||
|
|
<package.environment>prod</package.environment>
|
|||
|
|
</properties>
|
|||
|
|
<build>
|
|||
|
|
<resources>
|
|||
|
|
<resource>
|
|||
|
|
<directory>src/main/resources</directory>
|
|||
|
|
<!-- 资源根目录排除各环境的配置,使用单独的资源目录来指定 -->
|
|||
|
|
<!--<includes>
|
|||
|
|
<include>mapper/**</include>
|
|||
|
|
</includes>-->
|
|||
|
|
<includes>
|
|||
|
|
<include>mapper/**</include>
|
|||
|
|
<include>config/*.yml</include>
|
|||
|
|
<include>ip2region/**</include>
|
|||
|
|
<include>template/**</include>
|
|||
|
|
<include>*.properties</include>
|
|||
|
|
<include>*.xml</include>
|
|||
|
|
</includes>
|
|||
|
|
<!-- 是否替换资源中的属性 -->
|
|||
|
|
<filtering>true</filtering>
|
|||
|
|
</resource>
|
|||
|
|
</resources>
|
|||
|
|
</build>
|
|||
|
|
</profile>
|
|||
|
|
<profile>
|
|||
|
|
<id>dev</id>
|
|||
|
|
<activation>
|
|||
|
|
<activeByDefault>true</activeByDefault>
|
|||
|
|
</activation>
|
|||
|
|
<properties>
|
|||
|
|
<package.environment>dev</package.environment>
|
|||
|
|
</properties>
|
|||
|
|
<build>
|
|||
|
|
<resources>
|
|||
|
|
<resource>
|
|||
|
|
<directory>src/main/resources</directory>
|
|||
|
|
<!-- 资源根目录排除各环境的配置,使用单独的资源目录来指定 -->
|
|||
|
|
<includes>
|
|||
|
|
<include>mapper/**</include>
|
|||
|
|
<include>config/*.yml</include>
|
|||
|
|
<include>ip2region/**</include>
|
|||
|
|
<include>template/**</include>
|
|||
|
|
<include>*.txt</include>
|
|||
|
|
<include>*.properties</include>
|
|||
|
|
<include>*.xml</include>
|
|||
|
|
</includes>
|
|||
|
|
<!-- 是否替换资源中的属性 -->
|
|||
|
|
<filtering>true</filtering>
|
|||
|
|
</resource>
|
|||
|
|
</resources>
|
|||
|
|
</build>
|
|||
|
|
</profile>
|
|||
|
|
</profiles>
|
|||
|
|
|
|||
|
|
<build>
|
|||
|
|
<finalName>redmall-eladmin</finalName>
|
|||
|
|
<plugins>
|
|||
|
|
<!-- 设置编译版本 -->
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|||
|
|
<configuration>
|
|||
|
|
<source>1.8</source>
|
|||
|
|
<target>1.8</target>
|
|||
|
|
<encoding>UTF-8</encoding>
|
|||
|
|
</configuration>
|
|||
|
|
</plugin>
|
|||
|
|
|
|||
|
|
<!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|||
|
|
<configuration>
|
|||
|
|
<archive>
|
|||
|
|
<!-- 清单文件 -->
|
|||
|
|
<manifest>
|
|||
|
|
<mainClass>com.wuqian.Application</mainClass>
|
|||
|
|
<!-- 打包时 MANIFEST.MF文件不记录的时间戳版本 父工程开发版本需要加,不然依赖的父工程jar引用不了-->
|
|||
|
|
<useUniqueVersions>false</useUniqueVersions>
|
|||
|
|
<addClasspath>true</addClasspath>
|
|||
|
|
<classpathPrefix>lib/</classpathPrefix>
|
|||
|
|
</manifest>
|
|||
|
|
<!-- 给清单文件添加键值对(配置文件外置) -->
|
|||
|
|
<manifestEntries>
|
|||
|
|
<Class-Path>config/</Class-Path>
|
|||
|
|
</manifestEntries>
|
|||
|
|
</archive>
|
|||
|
|
<classesDirectory>
|
|||
|
|
</classesDirectory>
|
|||
|
|
</configuration>
|
|||
|
|
</plugin>
|
|||
|
|
<!-- 拷贝依赖的jar包到lib目录 -->
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|||
|
|
<executions>
|
|||
|
|
<execution>
|
|||
|
|
<id>copy</id>
|
|||
|
|
<phase>package</phase>
|
|||
|
|
<goals>
|
|||
|
|
<goal>copy-dependencies</goal>
|
|||
|
|
</goals>
|
|||
|
|
<configuration>
|
|||
|
|
<outputDirectory>
|
|||
|
|
${project.build.directory}/lib
|
|||
|
|
</outputDirectory>
|
|||
|
|
</configuration>
|
|||
|
|
</execution>
|
|||
|
|
</executions>
|
|||
|
|
</plugin>
|
|||
|
|
|
|||
|
|
<!-- 解决资源文件的编码问题 -->
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|||
|
|
<configuration>
|
|||
|
|
<encoding>UTF-8</encoding>
|
|||
|
|
<!-- 过滤后缀文件 -->
|
|||
|
|
<nonFilteredFileExtensions>
|
|||
|
|
<nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
|
|||
|
|
<nonFilteredFileExtension>xls</nonFilteredFileExtension>
|
|||
|
|
<nonFilteredFileExtension>p12</nonFilteredFileExtension>
|
|||
|
|
</nonFilteredFileExtensions>
|
|||
|
|
</configuration>
|
|||
|
|
</plugin>
|
|||
|
|
<!-- 打包source文件为zip文件 -->
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|||
|
|
<configuration>
|
|||
|
|
<descriptors>
|
|||
|
|
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
|||
|
|
</descriptors>
|
|||
|
|
</configuration>
|
|||
|
|
<executions>
|
|||
|
|
<execution>
|
|||
|
|
<id>make-assembly</id>
|
|||
|
|
<phase>package</phase>
|
|||
|
|
<goals>
|
|||
|
|
<goal>single</goal>
|
|||
|
|
</goals>
|
|||
|
|
</execution>
|
|||
|
|
</executions>
|
|||
|
|
</plugin>
|
|||
|
|
</plugins>
|
|||
|
|
</build>
|
|||
|
|
|
|||
|
|
</project>
|