副本技能-亚马逊SP-API的依赖SDK包生产

2024-09-05 02:08

本文主要是介绍副本技能-亚马逊SP-API的依赖SDK包生产,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

1.环境配置

需求:Java环境,Maven环境,均需配置环境变量(可自行百度)!

2.下载api的接口模块代码

selling-partner-api-models项目GitHub库

3.下载 Swagger 代码生成器

Swagger代码生成器下载地址
自己找个目放着就好

4.查找SDK的配置JSON文件

SDK的接口配置JSON路径:selling-partner-api-models\models\sellers-api-model
在这里插入图片描述
涉及部分有 37个

aplus-content-api
authorization-api
catalog-items-api
fba-inbound-eligibility-api
fba-inventory-api
fba-small-and-light-api
feeds-api
finances-api
fulfillment-inbound-api
fulfillment-outbound-api
listings-items-api
listings-restrictions-api
merchant-fulfillment-api
messaging-api
notifications-api
orders-api
product-fees-api
product-pricing-api
product-type-definitions-api
reports-api
sales-api
sellers-api
services-api
shipment-invoicing-api
shipping-api
solicitations-api
tokens-api
uploads-api
vendor-direct-fulfillment-inventory-api
vendor-direct-fulfillment-orders-api
vendor-direct-fulfillment-payments-api
vendor-direct-fulfillment-shipping-api
vendor-direct-fulfillment-transactions-api
vendor-invoices-api
vendor-orders-api
vendor-shipments-api
vendor-transaction-status-api

// ##标注部分代表有多个版本的API
selling-partner-api-models\models\aplus-content-api-model\aplusContent_2020-11-01.json
selling-partner-api-models\models\authorization-api-model\authorization.json
##selling-partner-api-models\models\catalog-items-api-model\catalogItems_2020-12-01.json
##selling-partner-api-models\models\catalog-items-api-model\catalogItemsV0.json
selling-partner-api-models\models\fba-inbound-eligibility-api-model\fbaInbound.json
selling-partner-api-models\models\fba-inventory-api-model\fbaInventory.json
selling-partner-api-models\models\fba-small-and-light-api-model\fbaSmallandLight.json
##selling-partner-api-models\models\feeds-api-model\feeds_2020-09-04.json
##selling-partner-api-models\models\feeds-api-model\feeds_2021-06-30.json
selling-partner-api-models\models\finances-api-model\financesV0.json
selling-partner-api-models\models\fulfillment-inbound-api-model\fulfillmentInboundV0.json
selling-partner-api-models\models\fulfillment-outbound-api-model\fulfillmentOutbound_2020-07-01.json
##selling-partner-api-models\models\listings-items-api-model\listingsItems_2020-09-01.json
##selling-partner-api-models\models\listings-items-api-model\listingsItems_2021-08-01.json
selling-partner-api-models\models\listings-restrictions-api-model\listingsRestrictions_2021-08-01.json
selling-partner-api-models\models\merchant-fulfillment-api-model\merchantFulfillmentV0.json
selling-partner-api-models\models\messaging-api-model\messaging.json
selling-partner-api-models\models\notifications-api-model\notifications.json
selling-partner-api-models\models\orders-api-model\ordersV0.json
selling-partner-api-models\models\product-fees-api-model\productFeesV0.json
selling-partner-api-models\models\product-pricing-api-model\productPricingV0.json
selling-partner-api-models\models\product-type-definitions-api-model\definitionsProductTypes_2020-09-01.json
##selling-partner-api-models\models\reports-api-model\reports_2020-09-04.json
##selling-partner-api-models\models\reports-api-model\reports_2021-06-30.json
selling-partner-api-models\models\sales-api-model\sales.json
selling-partner-api-models\models\sellers-api-model\sellers.json
selling-partner-api-models\models\services-api-model\services.json
selling-partner-api-models\models\shipment-invoicing-api-model\shipmentInvoicingV0.json
selling-partner-api-models\models\shipping-api-model\shipping.json
selling-partner-api-models\models\solicitations-api-model\solicitations.json
selling-partner-api-models\models\tokens-api-model\tokens_2021-03-01.json
selling-partner-api-models\models\uploads-api-model\uploads_2020-11-01.json
selling-partner-api-models\models\vendor-direct-fulfillment-inventory-api-model\vendorDirectFulfillmentInventoryV1.json
selling-partner-api-models\models\vendor-direct-fulfillment-orders-api-model\vendorDirectFulfillmentOrdersV1.json
selling-partner-api-models\models\vendor-direct-fulfillment-payments-api-model\vendorDirectFulfillmentPaymentsV1.json
selling-partner-api-models\models\vendor-direct-fulfillment-shipping-api-model\vendorDirectFulfillmentShippingV1.json
selling-partner-api-models\models\vendor-direct-fulfillment-transactions-api-model\vendorDirectFulfillmentTransactionsV1.json
selling-partner-api-models\models\vendor-invoices-api-model\vendorInvoices.json
selling-partner-api-models\models\vendor-orders-api-model\vendorOrders.json
selling-partner-api-models\models\vendor-shipments-api-model\vendorShipments.json
selling-partner-api-models\models\vendor-transaction-status-api-model\vendorTransactionStatus.json

5.代码生成命令如下

// 共计json文件有41个
java -jar [Swagger路径]\swagger-codegen-cli.jar generate -i [JSON文件路径]\Sellers.json -l java -t [selling-partner-api-models路径]\clients\sellingpartner-api-aa-java\resources\swagger-codegen\templates\ -o [生产代码存放目录]

6.使用工具批量生成命令

java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/aplus-content-api-model/aplusContent_2020-11-01.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_aplusContent_2020-11-01.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/authorization-api-model/authorization.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_authorization.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/catalog-items-api-model/catalogItems_2020-12-01.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_catalogItems_2020-12-01.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/catalog-items-api-model/catalogItemsV0.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_catalogItemsV0.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/fba-inbound-eligibility-api-model/fbaInbound.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_fbaInbound.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/fba-inventory-api-model/fbaInventory.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_fbaInventory.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/fba-small-and-light-api-model/fbaSmallandLight.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_fbaSmallandLight.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/feeds-api-model/feeds_2020-09-04.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_feeds_2020-09-04.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/feeds-api-model/feeds_2021-06-30.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_feeds_2021-06-30.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/finances-api-model/financesV0.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_financesV0.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/fulfillment-inbound-api-model/fulfillmentInboundV0.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_fulfillmentInboundV0.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/fulfillment-outbound-api-model/fulfillmentOutbound_2020-07-01.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_fulfillmentOutbound_2020-07-01.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/listings-items-api-model/listingsItems_2020-09-01.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_listingsItems_2020-09-01.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/listings-items-api-model/listingsItems_2021-08-01.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_listingsItems_2021-08-01.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/listings-restrictions-api-model/listingsRestrictions_2021-08-01.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_listingsRestrictions_2021-08-01.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/merchant-fulfillment-api-model/merchantFulfillmentV0.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_merchantFulfillmentV0.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/messaging-api-model/messaging.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_messaging.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/notifications-api-model/notifications.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_notifications.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/orders-api-model/ordersV0.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_ordersV0.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/product-fees-api-model/productFeesV0.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_productFeesV0.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/product-pricing-api-model/productPricingV0.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_productPricingV0.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/product-type-definitions-api-model/definitionsProductTypes_2020-09-01.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_definitionsProductTypes_2020-09-01.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/reports-api-model/reports_2020-09-04.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_reports_2020-09-04.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/reports-api-model/reports_2021-06-30.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_reports_2021-06-30.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/sales-api-model/sales.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_sales.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/sellers-api-model/sellers.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_sellers.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/services-api-model/services.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_services.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/shipment-invoicing-api-model/shipmentInvoicingV0.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_shipmentInvoicingV0.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/shipping-api-model/shipping.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_shipping.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/solicitations-api-model/solicitations.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_solicitations.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/tokens-api-model/tokens_2021-03-01.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_tokens_2021-03-01.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/uploads-api-model/uploads_2020-11-01.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_uploads_2020-11-01.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/vendor-direct-fulfillment-inventory-api-model/vendorDirectFulfillmentInventoryV1.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_vendorDirectFulfillmentInventoryV1.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/vendor-direct-fulfillment-orders-api-model/vendorDirectFulfillmentOrdersV1.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_vendorDirectFulfillmentOrdersV1.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/vendor-direct-fulfillment-payments-api-model/vendorDirectFulfillmentPaymentsV1.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_vendorDirectFulfillmentPaymentsV1.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/vendor-direct-fulfillment-shipping-api-model/vendorDirectFulfillmentShippingV1.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_vendorDirectFulfillmentShippingV1.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/vendor-direct-fulfillment-transactions-api-model/vendorDirectFulfillmentTransactionsV1.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_vendorDirectFulfillmentTransactionsV1.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/vendor-invoices-api-model/vendorInvoices.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_vendorInvoices.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/vendor-orders-api-model/vendorOrders.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_vendorOrders.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/vendor-shipments-api-model/vendorShipments.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_vendorShipments.json
java -jar D:/JavaServer/VevorGitStore/selling-partner-api-models/swagger-codegen-cli-2.4.13.jar generate -i D:/JavaServer/VevorGitStore/selling-partner-api-models/models/vendor-transaction-status-api-model/vendorTransactionStatus.json -l java -t D:/JavaServer/VevorGitStore/selling-partner-api-models/clients/sellingpartner-api-aa-java/resources/swagger-codegen/templates/ -o D:/sp-api/code/java_vendorTransactionStatus.json

7.cmd命令中执行

在这里插入图片描述
查看生成的结果;41个项目目录
在这里插入图片描述
准备sdk的编译环境
在这里插入图片描述

8.批量处理文件夹可用cmd命令

1.创建文件夹
md [文件夹路径]

2.复制文件到指定位置
xcopy [源文件夹路径] [目标文件夹路径] /e /i /h

9.手动整合生成的代码到项目中

已整合,下载可直接使用Git路径
在这里插入图片描述
Git项目Clone后运行效果图
在这里插入图片描述

依赖jar包后项目运行效果图
在这里插入图片描述

10.打包,上传,便于下次POM直接用

// 可以直接去下载
完整SP-API下载地址
这个包只需要下载后放到自己的本地仓库下即可,仓库相对路径:com\amazon\

<dependency><groupId>com.amazon.spapi</groupId><artifactId>spapi-java</artifactId><version>1.0</version>
</dependency>

这篇关于副本技能-亚马逊SP-API的依赖SDK包生产的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1137668

相关文章

NameNode内存生产配置

Hadoop2.x 系列,配置 NameNode 内存 NameNode 内存默认 2000m ,如果服务器内存 4G , NameNode 内存可以配置 3g 。在 hadoop-env.sh 文件中配置如下。 HADOOP_NAMENODE_OPTS=-Xmx3072m Hadoop3.x 系列,配置 Nam

每天认识几个maven依赖(ActiveMQ+activemq-jaxb+activesoap+activespace+adarwin)

八、ActiveMQ 1、是什么? ActiveMQ 是一个开源的消息中间件(Message Broker),由 Apache 软件基金会开发和维护。它实现了 Java 消息服务(Java Message Service, JMS)规范,并支持多种消息传递协议,包括 AMQP、MQTT 和 OpenWire 等。 2、有什么用? 可靠性:ActiveMQ 提供了消息持久性和事务支持,确保消

pip-tools:打造可重复、可控的 Python 开发环境,解决依赖关系,让代码更稳定

在 Python 开发中,管理依赖关系是一项繁琐且容易出错的任务。手动更新依赖版本、处理冲突、确保一致性等等,都可能让开发者感到头疼。而 pip-tools 为开发者提供了一套稳定可靠的解决方案。 什么是 pip-tools? pip-tools 是一组命令行工具,旨在简化 Python 依赖关系的管理,确保项目环境的稳定性和可重复性。它主要包含两个核心工具:pip-compile 和 pip

深入理解数据库的 4NF:多值依赖与消除数据异常

在数据库设计中, "范式" 是一个常常被提到的重要概念。许多初学者在学习数据库设计时,经常听到第一范式(1NF)、第二范式(2NF)、第三范式(3NF)以及 BCNF(Boyce-Codd范式)。这些范式都旨在通过消除数据冗余和异常来优化数据库结构。然而,当我们谈到 4NF(第四范式)时,事情变得更加复杂。本文将带你深入了解 多值依赖 和 4NF,帮助你在数据库设计中消除更高级别的异常。 什么是

消除安卓SDK更新时的“https://dl-ssl.google.com refused”异常的方法

消除安卓SDK更新时的“https://dl-ssl.google.com refused”异常的方法   消除安卓SDK更新时的“https://dl-ssl.google.com refused”异常的方法 [转载]原地址:http://blog.csdn.net/x605940745/article/details/17911115 消除SDK更新时的“

【LabVIEW学习篇 - 21】:DLL与API的调用

文章目录 DLL与API调用DLLAPIDLL的调用 DLL与API调用 LabVIEW虽然已经足够强大,但不同的语言在不同领域都有着自己的优势,为了强强联合,LabVIEW提供了强大的外部程序接口能力,包括DLL、CIN(C语言接口)、ActiveX、.NET、MATLAB等等。通过DLL可以使用户很方便地调用C、C++、C#、VB等编程语言写的程序以及windows自带的大

如何更优雅地对接第三方API

如何更优雅地对接第三方API 本文所有示例完整代码地址:https://github.com/yu-linfeng/BlogRepositories/tree/master/repositories/third 我们在日常开发过程中,有不少场景会对接第三方的API,例如第三方账号登录,第三方服务等等。第三方服务会提供API或者SDK,我依稀记得早些年Maven还没那么广泛使用,通常要对接第三方

生信代码入门:从零开始掌握生物信息学编程技能

少走弯路,高效分析;了解生信云,访问 【生信圆桌x生信专用云服务器】 : www.tebteb.cc 介绍 生物信息学是一个高度跨学科的领域,结合了生物学、计算机科学和统计学。随着高通量测序技术的发展,海量的生物数据需要通过编程来进行处理和分析。因此,掌握生信编程技能,成为每一个生物信息学研究者的必备能力。 生信代码入门,旨在帮助初学者从零开始学习生物信息学中的编程基础。通过学习常用

Java基础回顾系列-第五天-高级编程之API类库

Java基础回顾系列-第五天-高级编程之API类库 Java基础类库StringBufferStringBuilderStringCharSequence接口AutoCloseable接口RuntimeSystemCleaner对象克隆 数字操作类Math数学计算类Random随机数生成类BigInteger/BigDecimal大数字操作类 日期操作类DateSimpleDateForma

Restful API 原理以及实现

先说说API 再说啥是RESRFUL API之前,咱先说说啥是API吧。API大家应该都知道吧,简称接口嘛。随着现在移动互联网的火爆,手机软件,也就是APP几乎快爆棚了。几乎任何一个网站或者应用都会出一款iOS或者Android APP,相比网页版的体验,APP确实各方面性能要好很多。 那么现在问题来了。比如QQ空间网站,如果我想获取一个用户发的说说列表。 QQ空间网站里面需要这个功能。