maven在pom文件里引用本地jar
方法1:
<dependency>
<groupId>org.wltea</groupId>
<artifactId>IKAnalyzer</artifactId>
<version>2012_u6</version>
<scope>system</scope>
<systemPath>E:/repositories/IKAnalyzer2012_u6.jar</systemPath>
</dependency>
方法2:
<dependency>
<groupId>org.wltea</groupId>
<artifactId>IKAnalyzer</artifactId>
<version>3.2.8</version>
<scope>system</scope>
<systemPath>${basedir}/mylib/IKAnalyzer-3.2.8.jar</systemPath>
</dependency>
前提是 jar 得放到lib 里面