第一步在本地倉庫建立一個私有jar文件的目錄,複製私有jar文件該目錄java
第二部修改項目的pom文件添加以下依賴便可web
<dependency>
<groupId>taobao-sdk</groupId>
<artifactId>taobao-sdk-java</artifactId>
<version>1.0</version>apache
<!-- 本地倉庫的路徑-->
<systemPath>d:/repository/taobao-sdk/taobao-sdk-java-auto_1444440567460-20151103.jar</systemPath>maven
<!-- 這裏必須是system-->
<scope>system</scope>
</dependency>get
若是打包也須要該jar包繼續修改pom以下:it
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<warName>${project.artifactId}</warName>
<webResources>
<resource>
<directory>d:/repository/taobao-sdk</directory>
<targetPath>WEB-INF/lib</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin> io