maven專案引進本地jar包
1.在專案根路徑下新建bin資料夾
2.將所需jar包放入bin資料夾內(abc.jar)
3.在pom.xml中加入如下程式碼
<dependency>
<groupId>XXX</groupId>
<artifactId>YYY</artifactId>
<version>ZZZ</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/abc.jar</systemPath>
</dependency>
*其中 XXX,YYY,ZZZ根據自己情況填寫*
</build>
</plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<webResources>
<resource>
<directory>${project.basedir}/lib</directory>
<targetPath>WEB-INF/lib</targetPath>
<filtering>false</filtering>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
4.專案右鍵-Maven-Update Projet