1、eclipse中可以通过如下的方式添加的本地仓库中
http://www.pianshen.com/article/8507303550/
2、maven项目中可以直接放到lib中通过引用很方便
<dependency>
<groupId>com.shl</groupId>
<artifactId>page-sso</artifactId>
<version>1.0.0-RELEASE</version>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/dhcc-ajxm-sso-client-3.3.3.jar</systemPath>
<scope>system</scope>
</dependency>
当maven依赖本地而非repository中的jar包,sytemPath指明本地jar包路径