加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pom.xml 19.17 KB
一键复制 编辑 原始数据 按行查看 历史
qiusuo0226 提交于 2021-12-01 00:14 . fix: pom更新
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.7.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.qs</groupId>
<artifactId>common-tools</artifactId>
<version>1.2.2</version>
<name>common-tools</name>
<description>Demo project for Spring Boot</description>
<!-- 版本控制 -->
<properties>
<java.version>1.8</java.version>
<apache-commons-collections.version>4.2</apache-commons-collections.version>
<commons-lang.version>2.6</commons-lang.version>
<commons-fileupload.version>1.3.3</commons-fileupload.version>
<alibaba-fastjson-version>1.2.48</alibaba-fastjson-version>
<org.apache.poi.version>3.17</org.apache.poi.version>
<spring-test.version>5.1.9.RELEASE</spring-test.version>
<org.apache.commons.io.version>2.4</org.apache.commons.io.version>
<dom4j.version>2.0.0</dom4j.version>
<bcprov-jdk15on.version>1.54</bcprov-jdk15on.version>
<wso2.version>4.3.1.wso2v1</wso2.version>
<jedis.version>3.2.0</jedis.version>
<googleauth.version>1.4.0</googleauth.version>
<zxing.version>3.1.0</zxing.version>
<httpclient.version>4.2.1</httpclient.version>
<jackson.version>2.12.2</jackson.version>
<commons-codec.version>1.14</commons-codec.version>
</properties>
<!-- 依赖控制 -->
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
</dependency>
<!-- redis -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>${apache-commons-collections.version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>${commons-lang.version}</version>
</dependency>
<!-- String、xml、http -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${alibaba-fastjson-version}</version>
</dependency>
<!-- jackson -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- HTTP -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>${httpclient.version}</version>
</dependency>
<!-- Excel -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>${org.apache.poi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>${org.apache.poi.version}</version>
</dependency>
<!-- 二维码 -->
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>${zxing.version}</version>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>${zxing.version}</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>${commons-fileupload.version}</version>
</dependency>
<!-- XML -->
<dependency>
<groupId>org.dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>${dom4j.version}</version>
</dependency>
<!-- AES -->
<dependency>
<groupId>com.warrenstrange</groupId>
<artifactId>googleauth</artifactId>
<version>${googleauth.version}</version>
</dependency>
<!-- SM2、MD5 -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>${bcprov-jdk15on.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 打包忽略test文件夹 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!-- 打可依赖jar包(不包含项目中的依赖)-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- 打可依赖jar包(包含项目中的依赖,换依赖路径名)-->
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-shade-plugin</artifactId>-->
<!-- <version>3.2.1</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <phase>package</phase>-->
<!-- <goals>-->
<!-- <goal>shade</goal>-->
<!-- </goals>-->
<!-- <configuration>-->
<!-- &lt;!&ndash; 将项目中没有使用的依赖自动移除&ndash;&gt;-->
<!-- <minimizeJar>true</minimizeJar>-->
<!-- &lt;!&ndash;-->
<!-- Filter操作在打包时将jar包中的内容排除。它是以groupId:artifactId为标识,在filter内部可以使用<include>/<exclude>更细致地控制,既可以移除代码文件,也可以移除配置文件。-->
<!-- &ndash;&gt;-->
<!-- <filters>-->
<!-- <filter>-->
<!-- <artifact>*:*</artifact>-->
<!-- <excludes>-->
<!-- <exclude>META-INF/*.SF</exclude>-->
<!-- <exclude>META-INF/*.DSA</exclude>-->
<!-- <exclude>META-INF/*.RSA</exclude>-->
<!-- <exclude>module-info.class</exclude>-->
<!-- <exclude>Log4j-charsets.properties</exclude>-->
<!-- <exclude>*.yml</exclude>-->
<!-- <exclude>font_metrics.properties</exclude>-->
<!-- <exclude>org/slf4j/**</exclude>-->
<!-- <exclude>org/apache/logging/**</exclude>-->
<!--&lt;!&ndash; <exclude>javax/**</exclude>&ndash;&gt;-->
<!--&lt;!&ndash; <exclude>com/sun/**</exclude>&ndash;&gt;-->
<!-- </excludes>-->
<!-- </filter>-->
<!-- </filters>-->
<!-- &lt;!&ndash; 将整个jar包都过滤掉,可以使用<artifactSet>,也是指定groupId:artifactId的标识 &ndash;&gt;-->
<!-- <artifactSet>-->
<!-- <excludes>-->
<!-- <exclude>classworlds:classworlds</exclude>-->
<!-- <exclude>org.springframework:*</exclude>-->
<!-- <exclude>org.springframework.*:*</exclude>-->
<!-- <exclude>org.springframework.web:*</exclude>-->
<!--&lt;!&ndash; <exclude>org.springframework.boot:spring-boot-starter-data-redis</exclude>&ndash;&gt;-->
<!--&lt;!&ndash; <exclude>io.lettuce:lettuce-core</exclude>&ndash;&gt;-->
<!--&lt;!&ndash; <exclude>io.netty:*</exclude>&ndash;&gt;-->
<!--&lt;!&ndash; <exclude>io.projectreactor:reactor-core</exclude>&ndash;&gt;-->
<!-- <exclude>junit:junit</exclude>-->
<!--&lt;!&ndash; <exclude>jmock:*</exclude>&ndash;&gt;-->
<!--&lt;!&ndash; <exclude>*:xml-apis</exclude>&ndash;&gt;-->
<!--&lt;!&ndash; <exclude>org.apache.maven:lib:tests</exclude>&ndash;&gt;-->
<!-- <exclude>log4j:log4j:jar:</exclude>-->
<!-- <exclude>org.slf4j:slf4j-api</exclude>-->
<!-- <exclude>org.slf4j:jul-to-slf4j</exclude>-->
<!-- <exclude>commons-logging:commons-logging</exclude>-->
<!--&lt;!&ndash; <exclude>ch.qos.logback:logback-core</exclude>&ndash;&gt;-->
<!--&lt;!&ndash; <exclude>ch.qos.logback:logback-access</exclude>&ndash;&gt;-->
<!--&lt;!&ndash; <exclude>ch.qos.logback:logback-classic</exclude>&ndash;&gt;-->
<!-- </excludes>-->
<!-- </artifactSet>-->
<!-- <createDependencyReducedPom>true</createDependencyReducedPom>-->
<!-- <relocations>-->
<!-- &lt;!&ndash; 多个包需要替换使用多个relocation&ndash;&gt;-->
<!-- <relocation>-->
<!-- &lt;!&ndash; pattern 为需要匹配的前缀&ndash;&gt;-->
<!-- <pattern>com.fasterxml</pattern>-->
<!-- &lt;!&ndash; shadedPattern 为替换成什么前缀&ndash;&gt;-->
<!-- <shadedPattern>com.qs.shaded.fasterxml</shadedPattern>-->
<!-- </relocation>-->
<!-- <relocation>-->
<!-- <pattern>com.alibaba</pattern>-->
<!-- <shadedPattern>com.qs.shaded.com.alibaba</shadedPattern>-->
<!-- </relocation>-->
<!-- <relocation>-->
<!-- <pattern>com.google</pattern>-->
<!-- <shadedPattern>com.qs.shaded.com.google</shadedPattern>-->
<!-- </relocation>-->
<!-- <relocation>-->
<!-- <pattern>com.warrenstrange</pattern>-->
<!-- <shadedPattern>com.qs.shaded.com.warrenstrange</shadedPattern>-->
<!-- </relocation>-->
<!-- <relocation>-->
<!-- <pattern>com.microsoft</pattern>-->
<!-- <shadedPattern>com.qs.shaded.com.microsoft</shadedPattern>-->
<!-- </relocation>-->
<!-- <relocation>-->
<!-- <pattern>com.sun</pattern>-->
<!-- <shadedPattern>com.qs.shaded.com.sun</shadedPattern>-->
<!-- </relocation>-->
<!-- <relocation>-->
<!-- <pattern>ch</pattern>-->
<!-- <shadedPattern>com.qs.shaded.ch</shadedPattern>-->
<!-- </relocation>-->
<!-- <relocation>-->
<!-- <pattern>org</pattern>-->
<!-- <shadedPattern>com.qs.shaded.org</shadedPattern>-->
<!-- </relocation>-->
<!-- <relocation>-->
<!-- <pattern>io</pattern>-->
<!-- <shadedPattern>com.qs.shaded.io</shadedPattern>-->
<!-- </relocation>-->
<!-- <relocation>-->
<!-- <pattern>javax</pattern>-->
<!-- <shadedPattern>com.qs.shaded.javax</shadedPattern>-->
<!-- </relocation>-->
<!-- <relocation>-->
<!-- <pattern>repackage</pattern>-->
<!-- <shadedPattern>com.qs.shaded.repackage</shadedPattern>-->
<!-- </relocation>-->
<!-- <relocation>-->
<!-- <pattern>reactor</pattern>-->
<!-- <shadedPattern>com.qs.shaded.reactor</shadedPattern>-->
<!-- </relocation>-->
<!-- <relocation>-->
<!-- <pattern>schemaorg_apache_xmlbeans</pattern>-->
<!-- <shadedPattern>com.qs.shaded.schemaorg_apache_xmlbeans</shadedPattern>-->
<!-- </relocation>-->
<!-- </relocations>-->
<!-- &lt;!&ndash;用来处理多个jar包中存在重名的配置文件的合并,尤其是spring,把spring.handlers和spring.schemas文件以append方式加入到构建的jar包,加载applicationContext.xml时就不会报错了。&ndash;&gt;-->
<!-- <transformers>-->
<!-- <transformer-->
<!-- implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">-->
<!-- <resource>META-INF/spring.handlers</resource>-->
<!-- </transformer>-->
<!-- <transformer-->
<!-- implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">-->
<!-- <resource>META-INF/spring.schemas</resource>-->
<!-- </transformer>-->
<!-- </transformers>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
<!-- 打可依赖jar包(包含项目中的依赖)-->
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-assembly-plugin</artifactId>-->
<!-- <version>3.3.0</version>-->
<!-- <configuration>-->
<!-- &lt;!&ndash; 打包的配置文件 &ndash;&gt;-->
<!-- <descriptors>-->
<!-- <descriptor>src/main/assembly/package.xml</descriptor>-->
<!-- </descriptors>-->
<!-- &lt;!&ndash;这部分可有可无,加上的话则直接生成可运行jar包&ndash;&gt;-->
<!-- &lt;!&ndash;<archive>&ndash;&gt;-->
<!-- &lt;!&ndash;<manifest>&ndash;&gt;-->
<!-- &lt;!&ndash;<mainClass>${exec.mainClass}</mainClass>&ndash;&gt;-->
<!-- &lt;!&ndash;</manifest>&ndash;&gt;-->
<!-- &lt;!&ndash;</archive>&ndash;&gt;-->
<!--&lt;!&ndash; <descriptorRefs>&ndash;&gt;-->
<!--&lt;!&ndash; <descriptorRef>jar-with-dependencies</descriptorRef>&ndash;&gt;-->
<!--&lt;!&ndash; </descriptorRefs>&ndash;&gt;-->
<!-- </configuration>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>make-assembly</id> &lt;!&ndash; 此处指定继承合并 &ndash;&gt;-->
<!-- <phase>package</phase> &lt;!&ndash; 绑定到打包阶段 &ndash;&gt;-->
<!-- <goals>-->
<!-- <goal>single</goal>&lt;!&ndash; 只运行一次 &ndash;&gt;-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
</plugins>
<!-- 忽略资源 -->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
<include>**/*.yml</include>
<include>**/*.html</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化