Maven 不依赖笨蛋蛋仓库,也不依赖远程仓库

场景:

      某些包在 Maven 仓库中找不到,想下个包,本地应用直接依赖本地路径的包,不想依赖本地仓库,也不想依赖远程仓库。

<dependency>
      <groupId>xxx.xxx</groupId>
      <artifactId>xxx-xxx</artifactId>
      <version>x.x</version>
      <scope>system</scope>
      <systemPath>${basedir}/lib/xxx.jar</systemPath>
</dependency>

猜你喜欢

转载自youyu4.iteye.com/blog/2236575