maven在pom.xml里引用本地jar

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>


你可能感兴趣的:(maven,jar,local)