在pom.xml中加入类似以下代码即可,注意groupId、artifactId不能重复!
<!-- 自动依赖项目下lib文件夹里的包 -->
<dependency>
<groupId>jacob</groupId>
<artifactId>jacob0</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/jacob.jar</systemPath>
</dependency>
<dependency>
<groupId>jxl</groupId>
<artifactId>jxl0</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/jxl.jar</systemPath>
</dependency>