1:如果是多级module工程的情况下,将jar包添加到当前module中;
2:在当前需要依赖的maven工程中添加 外部jar包路径进行引入
<dependency><groupId>kuaishou</groupId><artifactId>kuaishou-merchant-open-sdk-release_open_kwaishop_sdk</artifactId><version>1.0.4202</version><scope>system</scope> <!--system,类似provided,需要显式提供依赖的jar以后,Maven就不会在Repository中查找它-->
<!-- <systemPath>${project.basedir}/ylc-component/lib/kuaishou-merchant-open-sdk-release_open_kwaishop_sdk-1.0.4202.jar</systemPath>--><systemPath>${project.basedir}/lib/kuaishou-merchant-open-sdk-release_open_kwaishop_sdk-1.0.4202.jar</systemPath>
</dependency><dependency><groupId>kuaishou</groupId><artifactId>kuaishou-merchant-open-sdk-releasetest_industry</artifactId><version>1.0.2310</version><scope>system</scope> <!--system,类似provided,需要显式提供依赖的jar以后,Maven就不会在Repository中查找它--><systemPath>${project.basedir}/lib/kuaishou-merchant-open-sdk-releasetest_industry-1.0.2310.jar</systemPath>
</dependency>
注意:外部jar包的路径信息可以在META-INF查看
如图所示