异常信息:
Could not find artifact com.aspose:aspose-words:pom:18.10 in central (https://repo.maven.apache.org/maven2)
Cannot resolve com.aspose:aspose-words:18.10
pom包配置:
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-words</artifactId>
<version>18.10</version>
</dependency>
maven仓库:
解决方法:
pom中增加如下配置
<repository>
<id>aspose-maven-repository</id>
<url>http://artifact.aspose.com/repo/</url>
</repository>
把配置的其它仓库注释掉,先下载这个包
比如,阿里的仓库先注释掉
<!-- <repository>-->
<!-- <id>alimaven</id>-->
<!-- <name>aliyun maven</name>-->
<!-- <url>http://maven.aliyun.com/nexus/content/groups/public</url>-->
<!-- </repository>-->