|
@@ -33,6 +33,26 @@
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>org.apache.logging.log4j</groupId>
|
|
|
+ <artifactId>log4j-to-slf4j</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>org.apache.logging.log4j</groupId>
|
|
|
+ <artifactId>log4j-api</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.logging.log4j</groupId>
|
|
|
+ <artifactId>log4j-api</artifactId>
|
|
|
+ <version>2.15.0</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.logging.log4j</groupId>
|
|
|
+ <artifactId>log4j-to-slf4j</artifactId>
|
|
|
+ <version>2.15.0</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
@@ -63,6 +83,12 @@
|
|
|
<groupId>org.elasticsearch.client</groupId>
|
|
|
<artifactId>elasticsearch-rest-high-level-client</artifactId>
|
|
|
<version>6.5.4</version>
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>org.apache.logging.log4j</groupId>
|
|
|
+ <artifactId>log4j-to-slf4j</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
@@ -73,7 +99,7 @@
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
- <version>1.2.67</version>
|
|
|
+ <version>1.2.76</version>
|
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
@@ -92,49 +118,53 @@
|
|
|
|
|
|
<build>
|
|
|
<plugins>
|
|
|
- <!--设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹-->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-jar-plugin</artifactId>
|
|
|
- <configuration>
|
|
|
- <archive>
|
|
|
- <manifest>
|
|
|
- <addClasspath>true</addClasspath>
|
|
|
- <classpathPrefix>lib/</classpathPrefix>
|
|
|
- </manifest>
|
|
|
- </archive>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <!--设置 SpringBoot 打包插件不包含任何 Jar 依赖包-->
|
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
- <configuration>
|
|
|
- <includes>
|
|
|
- <include>
|
|
|
- <groupId>nothing</groupId>
|
|
|
- <artifactId>nothing</artifactId>
|
|
|
- </include>
|
|
|
- </includes>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <!--设置将 lib 拷贝到应用 Jar 外面-->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-dependency-plugin</artifactId>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>copy-dependencies</id>
|
|
|
- <phase>prepare-package</phase>
|
|
|
- <goals>
|
|
|
- <goal>copy-dependencies</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
</plugin>
|
|
|
+ <!--设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹-->
|
|
|
+<!-- <plugin>-->
|
|
|
+<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
|
+<!-- <artifactId>maven-jar-plugin</artifactId>-->
|
|
|
+<!-- <configuration>-->
|
|
|
+<!-- <archive>-->
|
|
|
+<!-- <manifest>-->
|
|
|
+<!-- <addClasspath>true</addClasspath>-->
|
|
|
+<!-- <classpathPrefix>lib/</classpathPrefix>-->
|
|
|
+<!-- </manifest>-->
|
|
|
+<!-- </archive>-->
|
|
|
+<!-- </configuration>-->
|
|
|
+<!-- </plugin>-->
|
|
|
+<!-- <!–设置 SpringBoot 打包插件不包含任何 Jar 依赖包–>-->
|
|
|
+<!-- <plugin>-->
|
|
|
+<!-- <groupId>org.springframework.boot</groupId>-->
|
|
|
+<!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
|
|
|
+<!-- <configuration>-->
|
|
|
+<!-- <includes>-->
|
|
|
+<!-- <include>-->
|
|
|
+<!-- <groupId>nothing</groupId>-->
|
|
|
+<!-- <artifactId>nothing</artifactId>-->
|
|
|
+<!-- </include>-->
|
|
|
+<!-- </includes>-->
|
|
|
+<!-- </configuration>-->
|
|
|
+<!-- </plugin>-->
|
|
|
+<!-- <!–设置将 lib 拷贝到应用 Jar 外面–>-->
|
|
|
+<!-- <plugin>-->
|
|
|
+<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
|
+<!-- <artifactId>maven-dependency-plugin</artifactId>-->
|
|
|
+<!-- <executions>-->
|
|
|
+<!-- <execution>-->
|
|
|
+<!-- <id>copy-dependencies</id>-->
|
|
|
+<!-- <phase>prepare-package</phase>-->
|
|
|
+<!-- <goals>-->
|
|
|
+<!-- <goal>copy-dependencies</goal>-->
|
|
|
+<!-- </goals>-->
|
|
|
+<!-- <configuration>-->
|
|
|
+<!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>-->
|
|
|
+<!-- </configuration>-->
|
|
|
+<!-- </execution>-->
|
|
|
+<!-- </executions>-->
|
|
|
+<!-- </plugin>-->
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|