Maven: add a dependency to a jar by relative path

后端 未结 9 1299
半阙折子戏
半阙折子戏 2020-11-21 23:21

I have a proprietary jar that I want to add to my pom as a dependency.

But I don\'t want to add it to a repository. The reason is that I want my usual maven commands

9条回答
  •  猫巷女王i
    2020-11-22 00:21

    we switched to gradle and this works much better in gradle ;). we just specify a folder we can drop jars into for temporary situations like that. We still have most of our jars defined i the typicaly dependency management section(ie. the same as maven). This is just one more dependency we define.

    so basically now we can just drop any jar we want into our lib dir for temporary testing if it is not a in maven repository somewhere.

提交回复
热议问题