maven 本地添加第三方的jar包

以引用 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

如图:

maven 本地添加第三方的jar包

3.eclipse中引用,在pom.xml中添加如下信息:

        <dependency>
            <groupId>aliyun.java.sdk.core</groupId>
            <artifactId>aliyun.java.sdk.core</artifactId>
            <version>3.3.1</version>
        </dependency>

完成