Maven, how to add additional libs not available in repo

前端 未结 5 1631
深忆病人
深忆病人 2020-12-11 05:57

I have a maven project that has a set of library dependancies that are not available via any maven repository. How can I add those libraries to the pom? I want to do this s

5条回答
  •  暖寄归人
    2020-12-11 06:31

    You can include them with your project in a sub-directory (perhaps lib/). You can also provide .bat and/or .sh files containing all the appropriate calls to the maven-install-plugin necessary for each project member (or server env) to add these jars to the local repo.

    This approach allows new project members to get up & running quickly, without having to invest several hours in setting up a new public repo for your project or team.

提交回复
热议问题