kwai-open-sdk
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.github.kwaiopen</groupId> <artifactId>kwai-open-sdk</artifactId> <version>1.0.6</version> </dependency>
<?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.github.kwaiopen</groupId> <artifactId>kwai-open-sdk</artifactId> <version>1.0.6</version> <packaging>jar</packaging> <name>kwai-open-sdk</name> <description>快手服务端SDK</description> <url>https://github.com/KwaiOpen/KwaiOpenSDK</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <!--plugin--> <maven-source-plugin.version>3.0.1</maven-source-plugin.version> <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version> <maven-gpg-plugin.version>1.1</maven-gpg-plugin.version> <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version> <nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version> <httpcomponents.verson>4.5.12</httpcomponents.verson> <jackson.verson>2.11.2</jackson.verson> </properties> <!-- 许可证 --> <licenses> <license> <name>The Apache Software License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> </license> </licenses> <!-- 问题管理 --> <issueManagement> <system>github</system> <url>https://github.com/KwaiOpen/KwaiOpenSDK/issues</url> </issueManagement> <!-- SCM(Source Control Management)标签允许你配置你的代码库,供 Maven web 站点和其它插件使用。 --> <scm> <tag>master</tag> <url>git@github.com:KwaiOpen/KwaiOpenSDK.git</url> <connection>scm:git:git@github.com:KwaiOpen/KwaiOpenSDK.git</connection> <developerConnection>scm:git:git@github.com:KwaiOpen/KwaiOpenSDK.git</developerConnection> </scm> <!-- 项目开发者列表 --> <developers> <developer> <name>wuge</name> <email>wuge@kuaishou.com</email> <organization>kuaishou</organization> <roles> <role>Developer</role> </roles> <timezone>+8</timezone> </developer> </developers> <dependencies> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>${httpcomponents.verson}</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpmime</artifactId> <version>${httpcomponents.verson}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>${jackson.verson}</version> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.5.2</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <!--生成源码--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>${maven-source-plugin.version}</version> <configuration> <attach>true</attach> </configuration> <executions> <execution> <phase>compile</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <!--java doc--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${maven-javadoc-plugin.version}</version> <configuration> <encoding>UTF-8</encoding> <charset>UTF-8</charset> <docencoding>UTF-8</docencoding> </configuration> <executions> <execution> <id>attach-javadocs</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> <!--为了防止不规范的java doc注释导致打包失败--> <configuration> <additionalJOption>-Xdoclint:none</additionalJOption> </configuration> </execution> </executions> </plugin> <!--编译java--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>${maven-compiler-plugin.version}</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>release</id> <activation> <jdk>[1.8,)</jdk> </activation> <properties> <additionalparam>-Xdoclint:none</additionalparam> </properties> <!-- 项目分发信息,在执行 mvn deploy 后表示要发布的位置。有了这些信息就可以把网站部署到远程服务器或者把构件部署到远程仓库。--> <distributionManagement> <snapshotRepository> <!-- 这个 id 与第一步 setting.xml 中设置的对应 --> <id>snapshot</id> <!-- 这里的 url 就是 Issue 中回复的 snapshots 的 repository 地址--> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> <repository> <!-- 这个 id 与第一步 setting.xml 中设置的对应 --> <id>release</id> <!-- 这里的 url 就是 Issue 中回复的 staging 的 repository 地址--> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> </repository> </distributionManagement> <build> <plugins> <!--生成源码--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>${maven-source-plugin.version}</version> <executions> <execution> <id>release</id> <phase>package</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> <execution> <id>snapshot</id> <phase>package</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <!--签名校验--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>${maven-gpg-plugin.version}</version> <executions> <execution> <id>release</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> <!--在deploy成功后会自动帮你进行Staging Repositories Close操作--> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>${nexus-staging-maven-plugin.version}</version> <extensions>true</extensions> <configuration> <serverId>release</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>