|
|
|
|
|
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
|
|
|
|
<groupId>com.liuhuiyu</groupId>
|
|
|
|
|
|
<artifactId>okhttp3util</artifactId>
|
|
|
|
|
|
<version>2021.2.2</version>
|
|
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
|
|
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
|
|
|
|
<okhttp.version>4.10.0-RC1</okhttp.version>
|
|
|
|
|
|
<log4j2.version>2.17.1</log4j2.version>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
|
|
|
|
<version>5.8.2</version>
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
|
|
<artifactId>log4j-api</artifactId>
|
|
|
|
|
|
<version>${log4j2.version}</version>
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
|
|
<version>2.0.0-alpha5</version>
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<!--region 测试-->
|
|
|
|
|
|
<!-- <dependency>-->
|
|
|
|
|
|
<!-- <groupId>org.springframework.boot</groupId>-->
|
|
|
|
|
|
<!-- <artifactId>spring-boot-starter-test</artifactId>-->
|
|
|
|
|
|
<!-- <version>2.1.6.RELEASE</version>-->
|
|
|
|
|
|
<!-- <scope>test</scope>-->
|
|
|
|
|
|
<!-- </dependency>-->
|
|
|
|
|
|
<!-- <dependency>-->
|
|
|
|
|
|
<!-- <groupId>org.apache.logging.log4j</groupId>-->
|
|
|
|
|
|
<!-- <artifactId>log4j-api</artifactId>-->
|
|
|
|
|
|
<!-- <version>2.14.1</version>-->
|
|
|
|
|
|
<!-- <scope>test</scope>-->
|
|
|
|
|
|
<!-- </dependency>-->
|
|
|
|
|
|
<!--endregion -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
|
|
|
|
<artifactId>okhttp</artifactId>
|
|
|
|
|
|
<!-- <version>4.10.0-RC1</version>-->
|
|
|
|
|
|
<version>${okhttp.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
|
|
|
<artifactId>gson</artifactId>
|
|
|
|
|
|
<version>2.8.6</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<!-- <dependency>-->
|
|
|
|
|
|
<!-- <groupId>org.jetbrains</groupId>-->
|
|
|
|
|
|
<!-- <artifactId>annotations</artifactId>-->
|
|
|
|
|
|
<!-- <version>19.0.0</version>-->
|
|
|
|
|
|
<!-- </dependency>-->
|
|
|
|
|
|
<!-- <dependency>-->
|
|
|
|
|
|
<!-- <groupId>org.projectlombok</groupId>-->
|
|
|
|
|
|
<!-- <artifactId>lombok</artifactId>-->
|
|
|
|
|
|
<!-- <version>1.18.18</version>-->
|
|
|
|
|
|
<!-- <optional>true</optional>-->
|
|
|
|
|
|
<!-- </dependency>-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
|
|
<version>3.9</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<!--项目部署和发布的话需要配置: 在pom.xml中添加 distributionManagement 配置-->
|
|
|
|
|
|
<!-- maven仓库配置 deploy时可推送到配置的仓库中 -->
|
|
|
|
|
|
<distributionManagement>
|
|
|
|
|
|
<repository>
|
|
|
|
|
|
<id>maven-releases</id>
|
|
|
|
|
|
<name>Nexus Releases Repository Pro</name>
|
|
|
|
|
|
<url>http://47.242.184.139:8081/repository/maven-releases/</url>
|
|
|
|
|
|
</repository>
|
|
|
|
|
|
<snapshotRepository>
|
|
|
|
|
|
<id>maven-snapshots</id>
|
|
|
|
|
|
<name>Nexus Snapshots Repository Pro</name>
|
|
|
|
|
|
<url>http://47.242.184.139:8081/repository/maven-snapshots/</url>
|
|
|
|
|
|
</snapshotRepository>
|
|
|
|
|
|
</distributionManagement>
|
|
|
|
|
|
<!--在项目中使用pom.xml进行下载依赖配置的话可以单独使用:
|
|
|
|
|
|
注意:项目中使用的maven,如果已经在settings.xml中配置过后就无需在配置此项-->
|
|
|
|
|
|
<repositories>
|
|
|
|
|
|
<repository>
|
|
|
|
|
|
<id>repository</id>
|
|
|
|
|
|
<url>http://47.242.184.139:8081/repository/maven-public/</url>
|
|
|
|
|
|
<releases>
|
|
|
|
|
|
<enabled>true</enabled>
|
|
|
|
|
|
</releases>
|
|
|
|
|
|
<snapshots>
|
|
|
|
|
|
<enabled>true</enabled>
|
|
|
|
|
|
</snapshots>
|
|
|
|
|
|
</repository>
|
|
|
|
|
|
</repositories>
|
|
|
|
|
|
<pluginRepositories>
|
|
|
|
|
|
<pluginRepository>
|
|
|
|
|
|
<id>central</id>
|
|
|
|
|
|
<url>http://47.242.184.139:8081/repository/maven-central/</url>
|
|
|
|
|
|
<releases>
|
|
|
|
|
|
<enabled>true</enabled>
|
|
|
|
|
|
</releases>
|
|
|
|
|
|
<snapshots>
|
|
|
|
|
|
<enabled>false</enabled>
|
|
|
|
|
|
</snapshots>
|
|
|
|
|
|
</pluginRepository>
|
|
|
|
|
|
</pluginRepositories>
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
|
|
|
|
<version>1.3.70</version>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>compile</id>
|
|
|
|
|
|
<phase>process-sources</phase>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>compile</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>copy-resources</id>
|
|
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
|
|
|
|
|
|
<resources>
|
|
|
|
|
|
<resource>
|
|
|
|
|
|
<directory>src/main/java</directory>
|
|
|
|
|
|
<includes>
|
|
|
|
|
|
<include>**/*.java</include>
|
|
|
|
|
|
</includes>
|
|
|
|
|
|
</resource>
|
|
|
|
|
|
</resources>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<!-- <plugin>-->
|
|
|
|
|
|
<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
|
|
|
|
<!-- <artifactId>maven-source-plugin</artifactId>-->
|
|
|
|
|
|
<!-- <version>3.0.0</version>-->
|
|
|
|
|
|
<!-- <!– 绑定source插件到Maven的生命周期,并在生命周期后执行绑定的source的goal –>-->
|
|
|
|
|
|
<!-- <executions>-->
|
|
|
|
|
|
<!-- <execution>-->
|
|
|
|
|
|
<!-- <!– 绑定source插件到Maven的生命周期 –>-->
|
|
|
|
|
|
<!-- <phase>compile</phase>-->
|
|
|
|
|
|
<!-- <!–在生命周期后执行绑定的source插件的goals –>-->
|
|
|
|
|
|
<!-- <goals>-->
|
|
|
|
|
|
<!-- <goal>jar-no-fork</goal>-->
|
|
|
|
|
|
<!-- </goals>-->
|
|
|
|
|
|
<!-- </execution>-->
|
|
|
|
|
|
<!-- </executions>-->
|
|
|
|
|
|
<!-- </plugin>-->
|
|
|
|
|
|
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
</project>
|