这是我第一次尝试在Java
中使用MWS库。我有小型Spring Boot
应用程序Maven
-based。我想通过mws
从https://mvnrepository.com/安装mws
,我在Fishbowldev
上找到了几个库。在写这篇文章的时候,回购似乎是不可用的。我想使用的图书馆示例。
目前,我的pom.xml
看起来是这样的:
<?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>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.2.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>io.test.api</groupId>
<artifactId>test-api</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>test-api</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<repositories>
<repository>
<id>fishbowldev</id>
<name>Fishbowldev Repository</name>
<url>http://murky.fishbowldev.com:8081/nexus/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- MWS libraries -->
<!-- https://mvnrepository.com/artifact/amazon/mws-client -->
<dependency>
<groupId>amazon</groupId>
<artifactId>mws-client</artifactId>
<version>1.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/amazon/mws-sellers -->
<dependency>
<groupId>amazon</groupId>
<artifactId>mws-sellers</artifactId>
<version>2011-07-01</version>
</dependency>
<!-- https://mvnrepository.com/artifact/amazon/mws-orders -->
<dependency>
<groupId>amazon</groupId>
<artifactId>mws-orders</artifactId>
<version>2013-09-01-2015-09-25</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
除了手动安装之外,还有其他方法将这个库添加到我的pom.xml
文件中吗?
发布于 2019-02-23 07:24:05
对于我的问题,我没有找到确切的解决办法。相反,我找到了一个解决办法。Mavenised
旧MWS Java SDK
on GitHub的项目。
该解决方案没有创建任何使用MWS
的奇特方法,它只是Maven
-based项目的一个方便的包装器。
https://stackoverflow.com/questions/54774496
复制相似问题