在我们项目的pom.xml文件配置第三方仓库的地址
<repositories> <repository> <id>AsposeJavaAPI</id> <name>Aspose Java API</name> <url>https://repository.aspose.com/repo/</url> </repository> </repositories>
在配置maven项目依赖 坐标
<dependency> <groupId>com.aspose</groupId> <artifactId>aspose-pdf</artifactId> <version>21.4</version> </dependency>
把jar下载到本地
在把本地jar上传到我们的私服
打开我们的私服地址 找到upload
进行以下上传操作
Extension 写jar
如果jar包没有pom文件 需要把下面的点选Generate a POM file with these coordinates 会默认创建pom文件 不然引入jar包会报错Could not find artifact(找不到依赖)