feat: 配置拼多多sdk

This commit is contained in:
2026-08-03 09:59:17 +08:00
parent 91a5f9938a
commit 4e58b67c13
14 changed files with 175 additions and 7 deletions
+1
View File
@@ -1,5 +1,6 @@
HELP.md
target/
temp/
.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
+25
View File
@@ -0,0 +1,25 @@
# 本地第三方依赖仓库
本目录 `repo/` 为 Maven file 仓库,存放未上架中央仓库的 SDK。
## 当前依赖
| 坐标 | 说明 |
|------|------|
| `com.pinduoduo:pop-sdk:1.25.34` | 拼多多 POP Java SDK(all-in-one) |
## 升级 / 重新安装
```bash
# 从官方 zip 解出 jar 后执行(示例)
mvn install:install-file \
-Dfile=/path/to/pop-sdk-x.y.z-all.jar \
-DgroupId=com.pinduoduo \
-DartifactId=pop-sdk \
-Dversion=x.y.z \
-Dpackaging=jar \
-DgeneratePom=true \
-DlocalRepositoryPath=libs/repo
```
同步修改 `pom.xml` 中的 `pop-sdk.version`。
@@ -0,0 +1,4 @@
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
#Sat Aug 01 17:54:37 CST 2026
pop-sdk-1.25.34.pom>=
pop-sdk-1.25.34.jar>=
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.pinduoduo</groupId>
<artifactId>pop-sdk</artifactId>
<version>1.25.34</version>
<description>POM was created from install:install-file</description>
</project>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>com.pinduoduo</groupId>
<artifactId>pop-sdk</artifactId>
<versioning>
<release>1.25.34</release>
<versions>
<version>1.25.34</version>
</versions>
<lastUpdated>20260801095436</lastUpdated>
</versioning>
</metadata>
+17
View File
@@ -21,8 +21,19 @@
<mybatis-plus.version>3.5.5</mybatis-plus.version>
<!-- 统一 httpclient 版本,消除 aliyun-sdk-oss 传递依赖 4.5.13/4.5.14 冲突 -->
<httpclient.version>4.5.14</httpclient.version>
<!-- 拼多多 POP SDK(项目内 libs/repo,非 Maven Central) -->
<pop-sdk.version>1.25.34</pop-sdk.version>
</properties>
<!-- 本地第三方 jar 仓库(拼多多等未上架中央仓库的 SDK) -->
<repositories>
<repository>
<id>project-local</id>
<name>Project Local Repository</name>
<url>file://${project.basedir}/libs/repo</url>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<dependency>
@@ -157,6 +168,12 @@
<artifactId>poi-ooxml</artifactId>
<version>5.2.5</version>
</dependency>
<!-- 拼多多开放平台 POP SDK -->
<dependency>
<groupId>com.pinduoduo</groupId>
<artifactId>pop-sdk</artifactId>
<version>${pop-sdk.version}</version>
</dependency>
</dependencies>
<build>
@@ -5,9 +5,9 @@ server:
spring:
datasource:
url: jdbc:mysql://192.168.3.100:3306/ecom_dmb_dev?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
username: ecom_dmb_dev
password: ecom_dmb_dev
url: jdbc:mysql://192.168.3.100:3306/ecom_dmb_test?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
username: ecom_dmb_test
password: ecom_dmb_test
data:
redis:
host: 192.168.3.100