Browse Source

修改目录结构

pull/2317/head
Jiaju Zhuang 2 years ago
parent
commit
a038ec2df1
  1. 2
      .gitignore
  2. 2
      easyexcel-core/pom.xml
  3. 2
      easyexcel-core/src/main/java/com/alibaba/excel/util/ClassUtils.java
  4. 2
      easyexcel-core/src/main/java/com/alibaba/excel/util/FieldUtils.java
  5. 34
      easyexcel-support/pom.xml
  6. 2
      easyexcel/pom.xml
  7. 80
      pom.xml

2
.gitignore vendored

@ -13,3 +13,5 @@ target/
*.iws
antx.properties
output/
.flattened-pom.xml
dependency-reduced-pom.xml

2
easyexcel-core/pom.xml

@ -11,9 +11,9 @@
<relativePath>../pom.xml</relativePath>
</parent>
<packaging>jar</packaging>
<artifactId>easyexcel-core</artifactId>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>

2
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

2
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

34
easyexcel-support/pom.xml

@ -11,19 +11,25 @@
<relativePath>../pom.xml</relativePath>
</parent>
<packaging>jar</packaging>
<artifactId>easyexcel-support</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-jcl</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Packaging spring's cglib -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
@ -39,7 +45,7 @@
<createDependencyReducedPom>true</createDependencyReducedPom>
<!-- Make sure the transitive dependencies are written to the generated pom under <dependencies> -->
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<artifactSet>
<artifactSet combine.self="override">
<includes>
<include>org.springframework:spring-core</include>
</includes>
@ -53,20 +59,32 @@
</includes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>org.springframework</pattern>
<shadedPattern>com.alibaba.easyexcel.support</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<executions>
<execution>
<id>flatten.process-resources</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten</id>
<phase>package</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

2
easyexcel/pom.xml

@ -11,8 +11,10 @@
<relativePath>../pom.xml</relativePath>
</parent>
<packaging>jar</packaging>
<artifactId>easyexcel</artifactId>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>

80
pom.xml

@ -24,6 +24,7 @@
<jdk.version>1.8</jdk.version>
<gpg.skip>true</gpg.skip>
<maven.javadoc.skip>true</maven.javadoc.skip>
<maven.test.skip>true</maven.test.skip>
</properties>
<scm>
@ -192,11 +193,6 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
@ -239,14 +235,17 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.2.7</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
@ -301,7 +300,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<attach>true</attach>
</configuration>
@ -317,7 +315,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>verify</phase>
@ -361,6 +358,33 @@
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>${project.groupId}:${project.artifactId}</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.springframework</pattern>
<shadedPattern>com.alibaba.easyexcel.support</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
@ -369,6 +393,13 @@
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten.process-resources</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten</id>
<phase>package</phase>
@ -385,37 +416,6 @@
</execution>
</executions>
</plugin>
<!-- Packaging spring's cglib -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<filters>
<filter>
<artifact>org.springframework:spring-core</artifact>
<includes>
<include>org/springframework/asm/**</include>
<include>org/springframework/cglib/**</include>
</includes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>org.springframework</pattern>
<shadedPattern>com.alibaba.easyexcel.support</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

Loading…
Cancel
Save