maven pom添加本地jar依赖,添加:
<scope>system</scope>
<systemPath>${project.basedir}/lib/EIESmProxyApi.jar</systemPath>
另外解决方式:
通过 maven-install-plugin 插件对 jar 包进行安装。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>install-demo</id>
<phase>clean</phase>
<configuration>
<file>${basedir}/../lib/demo.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>com.demo</groupId>
<artifactId>demo</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>