How to add local jar files to a Maven project?

后端 未结 30 4065
悲&欢浪女
悲&欢浪女 2020-11-21 04:58

How do I add local jar files (not yet part of the Maven repository) directly in my project\'s library sources?

30条回答
  •  清歌不尽
    2020-11-21 05:28

    On your local repository you can install your jar by issuing the commands

     mvn install:install-file -Dfile= -DgroupId= \
    -DartifactId= -Dversion= -Dpackaging=
    

    Follow this useful link to do the same from mkyoung's website. You can also check maven guide for the same

提交回复
热议问题