How to add local jar files to a Maven project?

后端 未结 30 3910
悲&欢浪女
悲&欢浪女 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:13

    Of course you can add jars to that folder. But maybe it does not what you want to achieve...

    If you need these jars for compilation, check this related question: Can I add jars to maven 2 build classpath without installing them?

    Also, before anyone suggests it, do NOT use the system scope.

提交回复
热议问题