From a038ec2df1cf1b443c8ca6d3bb8210cadc487515 Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Thu, 10 Feb 2022 15:48:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=AE=E5=BD=95=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + easyexcel-core/pom.xml | 2 +- .../com/alibaba/excel/util/ClassUtils.java | 2 +- .../com/alibaba/excel/util/FieldUtils.java | 2 +- easyexcel-support/pom.xml | 34 ++++++-- easyexcel/pom.xml | 2 + pom.xml | 80 +++++++++---------- 7 files changed, 73 insertions(+), 51 deletions(-) diff --git a/.gitignore b/.gitignore index fac9ab5f..93472b7d 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ target/ *.iws antx.properties output/ +.flattened-pom.xml +dependency-reduced-pom.xml diff --git a/easyexcel-core/pom.xml b/easyexcel-core/pom.xml index a42a36b9..4f03d716 100644 --- a/easyexcel-core/pom.xml +++ b/easyexcel-core/pom.xml @@ -11,9 +11,9 @@ ../pom.xml + jar easyexcel-core - com.alibaba diff --git a/easyexcel-core/src/main/java/com/alibaba/excel/util/ClassUtils.java b/easyexcel-core/src/main/java/com/alibaba/excel/util/ClassUtils.java index f79dfdcc..96ed8421 100644 --- a/easyexcel-core/src/main/java/com/alibaba/excel/util/ClassUtils.java +++ b/easyexcel-core/src/main/java/com/alibaba/excel/util/ClassUtils.java @@ -35,7 +35,7 @@ import lombok.AllArgsConstructor; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; -import net.sf.cglib.beans.BeanMap; +import org.springframework.cglib.beans.BeanMap; /** * Licensed to the Apache Software Foundation (ASF) under one or more diff --git a/easyexcel-core/src/main/java/com/alibaba/excel/util/FieldUtils.java b/easyexcel-core/src/main/java/com/alibaba/excel/util/FieldUtils.java index 0a825a7b..583bc6f3 100644 --- a/easyexcel-core/src/main/java/com/alibaba/excel/util/FieldUtils.java +++ b/easyexcel-core/src/main/java/com/alibaba/excel/util/FieldUtils.java @@ -6,7 +6,7 @@ import java.util.Map; import com.alibaba.excel.metadata.NullObject; -import net.sf.cglib.beans.BeanMap; +import org.springframework.cglib.beans.BeanMap; /** * Licensed to the Apache Software Foundation (ASF) under one or more diff --git a/easyexcel-support/pom.xml b/easyexcel-support/pom.xml index c689359a..d15b0d7a 100644 --- a/easyexcel-support/pom.xml +++ b/easyexcel-support/pom.xml @@ -11,19 +11,25 @@ ../pom.xml + jar easyexcel-support org.springframework spring-core + + + org.springframework + spring-jcl + + - org.apache.maven.plugins maven-shade-plugin @@ -39,7 +45,7 @@ true true - + org.springframework:spring-core @@ -53,20 +59,32 @@ - - - org.springframework - com.alibaba.easyexcel.support - - + org.codehaus.mojo flatten-maven-plugin + + + flatten.process-resources + process-resources + + flatten + + + + flatten + package + + flatten + + + + diff --git a/easyexcel/pom.xml b/easyexcel/pom.xml index 5d28b0d0..303f79ad 100644 --- a/easyexcel/pom.xml +++ b/easyexcel/pom.xml @@ -11,8 +11,10 @@ ../pom.xml + jar easyexcel + com.alibaba diff --git a/pom.xml b/pom.xml index cf150db3..e8a7f9c0 100644 --- a/pom.xml +++ b/pom.xml @@ -24,6 +24,7 @@ 1.8 true true + true @@ -192,11 +193,6 @@ - - org.apache.maven.plugins - maven-shade-plugin - 3.2.4 - org.apache.maven.plugins maven-pmd-plugin @@ -239,14 +235,17 @@ maven-surefire-plugin 2.22.2 + + org.apache.maven.plugins + maven-shade-plugin + 3.2.4 + org.codehaus.mojo flatten-maven-plugin 1.2.7 - - @@ -301,7 +300,6 @@ org.apache.maven.plugins maven-source-plugin - 3.2.1 true @@ -317,7 +315,6 @@ org.apache.maven.plugins maven-gpg-plugin - 1.6 verify @@ -361,6 +358,33 @@ true + + + org.apache.maven.plugins + maven-shade-plugin + + + package + + shade + + + + + ${project.groupId}:${project.artifactId} + + + + + org.springframework + com.alibaba.easyexcel.support + + + + + + + org.codehaus.mojo flatten-maven-plugin @@ -369,6 +393,13 @@ resolveCiFriendliesOnly + + flatten.process-resources + process-resources + + flatten + + flatten package @@ -385,37 +416,6 @@ - - - org.apache.maven.plugins - maven-shade-plugin - - - package - - shade - - - false - - - org.springframework:spring-core - - org/springframework/asm/** - org/springframework/cglib/** - - - - - - org.springframework - com.alibaba.easyexcel.support - - - - - -