maven 本地添加第三方的jar包
以引用 这个jar包为例。
1.下载jar
2.通过maven命令安装到本地库
mvn install:install-file -Dfile=jar位置 -DgroupId=aliyun.java.sdk.core -DartifactId=aliyun.java.sdk.core -Dversion=版本号 -Dpackaging=jar
如图:
3.eclipse中引用,在pom.xml中添加如下信息:
<dependency>
<groupId>aliyun.java.sdk.core</groupId>
<artifactId>aliyun.java.sdk.core</artifactId>
<version>3.3.1</version>
</dependency>
完成