配置如下: pom.xml
<!-- 项目属性 -->
<properties>
<project.basedir>4.1.9.RELEASE</project.basedir>
</properties>
<dependency>
<groupId>com.test</groupId>
<artifactId>test-core</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>
${project.basedir}/src/main/webapp/WEB-INF/lib/test-core-1.0.jar
</systemPath>
</dependency>