|
@@ -30,7 +30,7 @@
|
|
<!--<mysql.connector.version>5.1.46</mysql.connector.version>-->
|
|
<!--<mysql.connector.version>5.1.46</mysql.connector.version>-->
|
|
<mysql.connector.version>8.0.18</mysql.connector.version>
|
|
<mysql.connector.version>8.0.18</mysql.connector.version>
|
|
<hibernate.version>6.0.14.Final</hibernate.version>
|
|
<hibernate.version>6.0.14.Final</hibernate.version>
|
|
- <jasypt-boot.version>2.1.1</jasypt-boot.version>
|
|
|
|
|
|
+ <jasypt-boot.version>3.0.3</jasypt-boot.version>
|
|
<commons-pool2.version>2.7.0</commons-pool2.version>
|
|
<commons-pool2.version>2.7.0</commons-pool2.version>
|
|
<jedis.version>3.1.0</jedis.version>
|
|
<jedis.version>3.1.0</jedis.version>
|
|
<quartz.version>2.3.1</quartz.version>
|
|
<quartz.version>2.3.1</quartz.version>
|
|
@@ -49,20 +49,19 @@
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
<version>${spring-boot.version}</version>
|
|
<version>${spring-boot.version}</version>
|
|
<type>pom</type>
|
|
<type>pom</type>
|
|
- <scope>import</scope>
|
|
|
|
</dependency>
|
|
</dependency>
|
|
<!--web 模块-->
|
|
<!--web 模块-->
|
|
<dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
<version>${spring-boot.version}</version>
|
|
<version>${spring-boot.version}</version>
|
|
-<!-- <exclusions>-->
|
|
|
|
-<!-- <!–排除tomcat依赖–>-->
|
|
|
|
-<!-- <exclusion>-->
|
|
|
|
-<!-- <artifactId>spring-boot-starter-tomcat</artifactId>-->
|
|
|
|
-<!-- <groupId>org.springframework.boot</groupId>-->
|
|
|
|
-<!-- </exclusion>-->
|
|
|
|
-<!-- </exclusions>-->
|
|
|
|
|
|
+ <exclusions>
|
|
|
|
+ <!--排除tomcat依赖-->
|
|
|
|
+ <exclusion>
|
|
|
|
+ <artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ </exclusion>
|
|
|
|
+ </exclusions>
|
|
</dependency>
|
|
</dependency>
|
|
<!--mysql 驱动-->
|
|
<!--mysql 驱动-->
|
|
<dependency>
|
|
<dependency>
|
|
@@ -131,10 +130,10 @@
|
|
<groupId>org.projectlombok</groupId>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<artifactId>lombok</artifactId>
|
|
</dependency>
|
|
</dependency>
|
|
-<!-- <dependency>-->
|
|
|
|
-<!-- <groupId>org.springframework.boot</groupId>-->
|
|
|
|
-<!-- <artifactId>spring-boot-starter-undertow</artifactId>-->
|
|
|
|
-<!-- </dependency>-->
|
|
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-undertow</artifactId>
|
|
|
|
+ </dependency>
|
|
<dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
@@ -223,30 +222,129 @@
|
|
</dependencies>
|
|
</dependencies>
|
|
<build>
|
|
<build>
|
|
<plugins>
|
|
<plugins>
|
|
|
|
+ <!--跳过test类-->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
+ <version>2.21.0</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <skipTests>true</skipTests>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+ <!-- 插件maven-clean-plugin,用于在编译前,清除之前编译的文件、文件夹等,避免残留之前的内容 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-clean-plugin</artifactId>
|
|
|
|
+ <version>3.1.0</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <filesets>
|
|
|
|
+ <fileset>
|
|
|
|
+ <!-- 前端资源目录,即:存放前端包目录-->
|
|
|
|
+ <directory>src/main/resources/static</directory>
|
|
|
|
+ </fileset>
|
|
|
|
+ <fileset>
|
|
|
|
+ <!-- Vue项目打包自动生成的dist目录 -->
|
|
|
|
+ <directory>../ui/dist</directory>
|
|
|
|
+ </fileset>
|
|
|
|
+ </filesets>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!--frontend-maven-plugin为项目本地下载/安装Node和NPM,运行npm install命令-->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>com.github.eirslett</groupId>
|
|
|
|
+ <artifactId>frontend-maven-plugin</artifactId>
|
|
|
|
+ <version>1.6</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <workingDirectory>../ui</workingDirectory>
|
|
|
|
+ </configuration>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <id>install node and npm</id>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>install-node-and-npm</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ <configuration>
|
|
|
|
+ <nodeVersion>v16.13.1</nodeVersion>
|
|
|
|
+ <npmVersion>8.1.2</npmVersion>
|
|
|
|
+ </configuration>
|
|
|
|
+ </execution>
|
|
|
|
+ <!-- Install all project dependencies -->
|
|
|
|
+ <execution>
|
|
|
|
+ <id>npm install</id>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>npm</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ <phase>generate-resources</phase>
|
|
|
|
+ <configuration>
|
|
|
|
+ <arguments>install</arguments>
|
|
|
|
+ </configuration>
|
|
|
|
+ </execution>
|
|
|
|
+ <!-- Build and minify static files -->
|
|
|
|
+ <execution>
|
|
|
|
+ <id>npm run build</id>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>npm</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ <configuration>
|
|
|
|
+ <arguments>run build:prod</arguments>
|
|
|
|
+ </configuration>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!--资源插件,主要为了从前端项目里复制打包好的文件到springboot项目-->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
|
+ <version>3.1.0</version>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <id>copy static</id>
|
|
|
|
+ <phase>generate-resources</phase>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>copy-resources</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ <configuration>
|
|
|
|
+ <!-- 复制前端打包文件到这里 -->
|
|
|
|
+ <outputDirectory>src/main/resources/static</outputDirectory>
|
|
|
|
+ <overwrite>true</overwrite>
|
|
|
|
+ <resources>
|
|
|
|
+ <resource>
|
|
|
|
+ <!-- 从前端打包的目录dist进行指定文件、文件夹内容的复制-->
|
|
|
|
+ <directory>${project.parent.basedir}/ui/dist</directory>
|
|
|
|
+ <includes>
|
|
|
|
+ <!-- 具体根据实际前端代码、及目录结构进行配置-->
|
|
|
|
+ <include>assets/</include>
|
|
|
|
+ <include>favicon.ico</include>
|
|
|
|
+ <include>index.html</include>
|
|
|
|
+ </includes>
|
|
|
|
+ </resource>
|
|
|
|
+ </resources>
|
|
|
|
+ </configuration>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ </plugin>
|
|
<plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
- <version>2.2.1.RELEASE</version>
|
|
|
|
|
|
+ <version>2.1.7.RELEASE</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <!--控制是否启用支持Linux下service方式运行-->
|
|
|
|
+ <executable>true</executable>
|
|
|
|
+ <!--打包后自动运行程序-->
|
|
|
|
+<!-- <includeSystemScope>true</includeSystemScope>-->
|
|
|
|
+ </configuration>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>build-info</goal>
|
|
|
|
+ <goal>repackage</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
</plugin>
|
|
</plugin>
|
|
</plugins>
|
|
</plugins>
|
|
-<!-- <resources>-->
|
|
|
|
-<!-- <resource>-->
|
|
|
|
-<!-- <directory>src/main/java</directory>-->
|
|
|
|
-<!-- <includes>-->
|
|
|
|
-<!-- <include>**/*.properties</include>-->
|
|
|
|
-<!-- <include>**/*.xml</include>-->
|
|
|
|
-<!-- </includes>-->
|
|
|
|
-<!-- <filtering>false</filtering>-->
|
|
|
|
-<!-- </resource>-->
|
|
|
|
-<!-- <resource>-->
|
|
|
|
-<!-- <directory>src/main/resources</directory>-->
|
|
|
|
-<!-- <includes>-->
|
|
|
|
-<!-- <include>**/*.properties</include>-->
|
|
|
|
-<!-- <include>**/*.xml</include>-->
|
|
|
|
-<!-- </includes>-->
|
|
|
|
-<!-- <filtering>false</filtering>-->
|
|
|
|
-<!-- </resource>-->
|
|
|
|
-<!-- </resources>-->
|
|
|
|
</build>
|
|
</build>
|
|
<!--上传配置 必须 -->
|
|
<!--上传配置 必须 -->
|
|
<distributionManagement>
|
|
<distributionManagement>
|