场景:
某些包在 Maven 仓库中找不到,想下个包,本地应用直接依赖本地路径的包,不想依赖本地仓库,也不想依赖远程仓库。
<dependency> <groupId>xxx.xxx</groupId> <artifactId>xxx-xxx</artifactId> <version>x.x</version> <scope>system</scope> <systemPath>${basedir}/lib/xxx.jar</systemPath> </dependency>
场景:
某些包在 Maven 仓库中找不到,想下个包,本地应用直接依赖本地路径的包,不想依赖本地仓库,也不想依赖远程仓库。
<dependency> <groupId>xxx.xxx</groupId> <artifactId>xxx-xxx</artifactId> <version>x.x</version> <scope>system</scope> <systemPath>${basedir}/lib/xxx.jar</systemPath> </dependency>